| |
|
| java.lang.Object org.millstone.base.ui.AbstractComponent org.millstone.base.ui.AbstractField org.millstone.base.ui.Button
All known Subclasses: org.millstone.examples.Chat, org.millstone.examples.features.PropertyPanel, org.millstone.examples.features.FeatureFrameWindow, org.millstone.examples.Calc,
Button | public class Button extends AbstractField (Code) | | A generic button component.
author: IT Mill Ltd. version: 3.1.1 since: 3.0 |
Inner Class :public interface ClickListener | |
Constructor Summary | |
public | Button() Creates a new push button. | public | Button(String caption) Creates a new push button. | public | Button(String caption, ClickListener listener) Creates a new push button with click listener. | public | Button(String caption, Object target, String methodName) Creates a new push button with a method listening button clicks. | public | Button(String caption, boolean initialState) Creates new switch button with initial value. | public | Button(String caption, Property dataSource) Creates new switch button that is connected to a boolean property. |
switchMode | boolean switchMode(Code) | | |
Button | public Button()(Code) | | Creates a new push button.
The value of the push button is allways false and they are
immediate by default.
|
Button | public Button(String caption)(Code) | | Creates a new push button.
The value of the push button is allways false and they are
immediate by default.
Parameters: caption - Button caption |
Button | public Button(String caption, ClickListener listener)(Code) | | Creates a new push button with click listener.
Parameters: caption - Button caption Parameters: listener - Button click listener |
Button | public Button(String caption, Object target, String methodName)(Code) | | Creates a new push button with a method listening button clicks.
The method must have either no parameters, or only one parameter of
Button.ClickEvent type.
Parameters: caption - Button caption Parameters: target - Object having the method for listening button clicks Parameters: methodName - The name of the method in target object, thatreceives button click events. |
Button | public Button(String caption, boolean initialState)(Code) | | Creates new switch button with initial value.
Parameters: state - Initial state of the switch-button. |
Button | public Button(String caption, Property dataSource)(Code) | | Creates new switch button that is connected to a boolean property.
Parameters: state - Initial state of the switch-button. |
addListener | public void addListener(ClickListener listener)(Code) | | Add button click listener
Parameters: listener - Listener to be added. |
changeVariables | public void changeVariables(Object source, Map variables)(Code) | | Invoked when the value of a variable has changed. Button
listeners are notified if the button is clicked.
Parameters: event - Variable change event. |
fireClick | protected void fireClick()(Code) | | Emit options change event.
|
getTag | public String getTag()(Code) | | Get component UIDL tag.
Component UIDL tag as string. |
isSwitchMode | public boolean isSwitchMode()(Code) | | Returns the switchMode.
boolean |
paintContent | public void paintContent(PaintTarget target) throws PaintException(Code) | | Paint the content of this component.
Parameters: event - PaintEvent. throws: IOException - Passed from the UIDLStream. throws: PaintException - The paint operation failed. |
removeListener | public void removeListener(ClickListener listener)(Code) | | Remove button click listener
Parameters: listener - Listener to be removed. |
setSwitchMode | public void setSwitchMode(boolean switchMode)(Code) | | Sets the switchMode.
Parameters: switchMode - The switchMode to set |
Methods inherited from org.millstone.base.ui.AbstractComponent | public void addListener(RepaintRequestListener listener)(Code)(Java Doc) public void addListener(Class eventType, Object object, Method method)(Code)(Java Doc) public void addListener(Class eventType, Object object, String methodName)(Code)(Java Doc) public void addListener(Component.Listener listener)(Code)(Java Doc) public void attach()(Code)(Java Doc) public void changeVariables(Object source, Map variables)(Code)(Java Doc) public void childRequestedRepaint(Collection alreadyNotified)(Code)(Java Doc) public void dependsOn(VariableOwner depended)(Code)(Java Doc) public void detach()(Code)(Java Doc) protected void fireComponentErrorEvent()(Code)(Java Doc) protected void fireComponentEvent()(Code)(Java Doc) protected void fireEvent(Component.Event event)(Code)(Java Doc) public Application getApplication()(Code)(Java Doc) public String getCaption()(Code)(Java Doc) public ErrorMessage getComponentError()(Code)(Java Doc) public Object getData()(Code)(Java Doc) public String getDescription()(Code)(Java Doc) public Set getDirectDependencies()(Code)(Java Doc) public ErrorMessage getErrorMessage()(Code)(Java Doc) public Resource getIcon()(Code)(Java Doc) public Locale getLocale()(Code)(Java Doc) public Component getParent()(Code)(Java Doc) public String getStyle()(Code)(Java Doc) abstract public String getTag()(Code)(Java Doc) public Window getWindow()(Code)(Java Doc) public boolean isEnabled()(Code)(Java Doc) public boolean isImmediate()(Code)(Java Doc) public boolean isReadOnly()(Code)(Java Doc) public boolean isVisible()(Code)(Java Doc) final public void paint(PaintTarget target) throws PaintException(Code)(Java Doc) public void paintContent(PaintTarget target) throws PaintException(Code)(Java Doc) public void removeDirectDependency(VariableOwner depended)(Code)(Java Doc) public void removeListener(RepaintRequestListener listener)(Code)(Java Doc) public void removeListener(Class eventType, Object target)(Code)(Java Doc) public void removeListener(Class eventType, Object target, Method method)(Code)(Java Doc) public void removeListener(Class eventType, Object target, String methodName)(Code)(Java Doc) public void removeListener(Component.Listener listener)(Code)(Java Doc) public void requestRepaint()(Code)(Java Doc) public void requestRepaintRequests()(Code)(Java Doc) public void setCaption(String caption)(Code)(Java Doc) public void setComponentError(ErrorMessage componentError)(Code)(Java Doc) public void setData(Object data)(Code)(Java Doc) public void setDescription(String description)(Code)(Java Doc) public void setEnabled(boolean enabled)(Code)(Java Doc) public void setIcon(Resource icon)(Code)(Java Doc) public void setImmediate(boolean immediate)(Code)(Java Doc) public void setLocale(Locale locale)(Code)(Java Doc) public void setParent(Component parent)(Code)(Java Doc) public void setReadOnly(boolean readOnly)(Code)(Java Doc) public void setStyle(String style)(Code)(Java Doc) public void setVisible(boolean visible)(Code)(Java Doc)
|
|
|
|