BrightSide Workbench Full Report + Source Code
org.turro.command.ControlAdapter Class Reference

Public Member Functions

 ControlAdapter (HtmlBasedComponent component)
 
HtmlBasedComponent getComponent ()
 
HtmlBasedComponent setWidth (String width)
 
HtmlBasedComponent setVflex (String flex)
 
HtmlBasedComponent setTooltiptext (String tooltiptext)
 
HtmlBasedComponent setStyle (String style)
 
HtmlBasedComponent setSclass (String sclass)
 
HtmlBasedComponent setHflex (String flex)
 
HtmlBasedComponent setHeight (String height)
 
HtmlBasedComponent setFocus (boolean focus)
 
HtmlBasedComponent setDroppable (String droppable)
 
HtmlBasedComponent setDraggable (String draggable)
 
HtmlBasedComponent setLabel (String label)
 
HtmlBasedComponent setImage (String image)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 29 of file ControlAdapter.java.

Constructor & Destructor Documentation

◆ ControlAdapter()

org.turro.command.ControlAdapter.ControlAdapter ( HtmlBasedComponent  component)

Definition at line 33 of file ControlAdapter.java.

33  {
34  this.component = component;
35  }

Member Function Documentation

◆ getComponent()

HtmlBasedComponent org.turro.command.ControlAdapter.getComponent ( )

Definition at line 37 of file ControlAdapter.java.

37  {
38  return component;
39  }

◆ setDraggable()

HtmlBasedComponent org.turro.command.ControlAdapter.setDraggable ( String  draggable)

Definition at line 86 of file ControlAdapter.java.

86  {
87  component.setDraggable(draggable);
88  return component;
89  }

◆ setDroppable()

HtmlBasedComponent org.turro.command.ControlAdapter.setDroppable ( String  droppable)

Definition at line 81 of file ControlAdapter.java.

81  {
82  component.setDroppable(droppable);
83  return component;
84  }

◆ setFocus()

HtmlBasedComponent org.turro.command.ControlAdapter.setFocus ( boolean  focus)

Definition at line 76 of file ControlAdapter.java.

76  {
77  component.setFocus(focus);
78  return component;
79  }

◆ setHeight()

HtmlBasedComponent org.turro.command.ControlAdapter.setHeight ( String  height)

Definition at line 71 of file ControlAdapter.java.

71  {
72  component.setHeight(height);
73  return component;
74  }

◆ setHflex()

HtmlBasedComponent org.turro.command.ControlAdapter.setHflex ( String  flex)

Definition at line 66 of file ControlAdapter.java.

66  {
67  component.setHflex(flex);
68  return component;
69  }

◆ setImage()

HtmlBasedComponent org.turro.command.ControlAdapter.setImage ( String  image)

Definition at line 100 of file ControlAdapter.java.

100  {
101  if(component instanceof LabelImageElement) {
102  ((LabelImageElement) component).setImage(image);
103  }
104  return component;
105  }

◆ setLabel()

HtmlBasedComponent org.turro.command.ControlAdapter.setLabel ( String  label)

Definition at line 91 of file ControlAdapter.java.

91  {
92  if(component instanceof Label) {
93  ((Label) component).setValue(label);
94  } if(component instanceof LabelImageElement) {
95  ((LabelImageElement) component).setLabel(label);
96  }
97  return component;
98  }

◆ setSclass()

HtmlBasedComponent org.turro.command.ControlAdapter.setSclass ( String  sclass)

Definition at line 61 of file ControlAdapter.java.

61  {
62  component.setSclass(sclass);
63  return component;
64  }

◆ setStyle()

HtmlBasedComponent org.turro.command.ControlAdapter.setStyle ( String  style)

Definition at line 56 of file ControlAdapter.java.

56  {
57  component.setStyle(style);
58  return component;
59  }

◆ setTooltiptext()

HtmlBasedComponent org.turro.command.ControlAdapter.setTooltiptext ( String  tooltiptext)

Definition at line 51 of file ControlAdapter.java.

51  {
52  component.setTooltiptext(tooltiptext);
53  return component;
54  }

◆ setVflex()

HtmlBasedComponent org.turro.command.ControlAdapter.setVflex ( String  flex)

Definition at line 46 of file ControlAdapter.java.

46  {
47  component.setVflex(flex);
48  return component;
49  }

◆ setWidth()

HtmlBasedComponent org.turro.command.ControlAdapter.setWidth ( String  width)

Definition at line 41 of file ControlAdapter.java.

41  {
42  component.setWidth(width);
43  return component;
44  }

The documentation for this class was generated from the following file: