Java Doc for ToggleButton.java in  » Ajax » NextApp-Echo2 » nextapp » echo2 » app » button » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Ajax » NextApp Echo2 » nextapp.echo2.app.button 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


nextapp.echo2.app.button.AbstractButton
   nextapp.echo2.app.button.ToggleButton

All known Subclasses:   nextapp.echo2.app.CheckBox,  nextapp.echo2.app.RadioButton,
ToggleButton
abstract public class ToggleButton extends AbstractButton (Code)
An abstract base class for 'two state' buttons.


Field Summary
final public static  StringPROPERTY_PRESSED_SELECTED_STATE_ICON
    
final public static  StringPROPERTY_PRESSED_STATE_ICON
    
final public static  StringPROPERTY_ROLLOVER_SELECTED_STATE_ICON
    
final public static  StringPROPERTY_ROLLOVER_STATE_ICON
    
final public static  StringPROPERTY_SELECTED_STATE_ICON
    
final public static  StringPROPERTY_STATE_ALIGNMENT
    
final public static  StringPROPERTY_STATE_ICON
    
final public static  StringPROPERTY_STATE_MARGIN
    
final public static  StringPROPERTY_STATE_POSITION
    
final public static  StringSELECTED_CHANGED_PROPERTY
    


Method Summary
public  voidaddChangeListener(ChangeListener l)
     Adds a ChangeListener to receive notification of state changes, i.e., to the selected state of a ToggleButton.
public  voidfireStateChanged()
     Notifies all listeners that have registered for this event type.
public  ImageReferencegetPressedSelectedStateIcon()
     Returns the selected state icon displayed when the button is being pressed.
public  ImageReferencegetPressedStateIcon()
     Returns the default (non-selected) state icon displayed when the button is being pressed.
public  ImageReferencegetRolloverSelectedStateIcon()
     Returns the selected state icon displayed when the mouse cursor is inside the bounds of the button.
public  ImageReferencegetRolloverStateIcon()
     Returns the default (non-selected) state icon displayed when the mouse cursor is inside the bounds of the button.
public  ImageReferencegetSelectedStateIcon()
     Returns the selected state icon.
public  AlignmentgetStateAlignment()
     Returns the alignment of the state icon relative to the button's text/icon.
public  ImageReferencegetStateIcon()
     Returns the default (non-selected) state icon.
public  ExtentgetStateMargin()
     Returns the margin size between the state icon and the toggle button's icon and/or text.
public  AlignmentgetStatePosition()
     Returns the position of the state icon relative to the button's text/icon.
public  booleanisSelected()
     Determines the selection state.
public  voidprocessInput(String name, Object value)
    
public  voidremoveChangeListener(ChangeListener l)
     Removes a ChangeListener from being notified of state changes, i.e., to the selected state of a ToggleButton.
public  voidsetModel(ButtonModel newValue)
    
public  voidsetPressedSelectedStateIcon(ImageReference newValue)
     Sets the selected state icon displayed when the button is being pressed.
public  voidsetPressedStateIcon(ImageReference newValue)
     Sets the default (non-selected) state icon displayed when the button is being pressed.
public  voidsetRolloverSelectedStateIcon(ImageReference newValue)
     Sets the selected state icon displayed when the mouse cursor is inside the bounds of the button.
public  voidsetRolloverStateIcon(ImageReference newValue)
     Sets the default (non-selected) state icon displayed when the mouse cursor is inside the bounds of the button.
public  voidsetSelected(boolean newValue)
     Sets the selection state.
public  voidsetSelectedStateIcon(ImageReference newValue)
     Sets the selected state icon.
public  voidsetStateAlignment(Alignment newValue)
     Sets the alignment of the state icon relative to the text/icon of the button.
public  voidsetStateIcon(ImageReference newValue)
     Sets the default (non-selected) state icon.
public  voidsetStateMargin(Extent newValue)
     Sets the margin size between the state icon and the toggle button's icon and/or text.
public  voidsetStatePosition(Alignment newValue)
     Sets the position of the state icon relative to the text/icon of the button.

Field Detail
PROPERTY_PRESSED_SELECTED_STATE_ICON
final public static String PROPERTY_PRESSED_SELECTED_STATE_ICON(Code)



PROPERTY_PRESSED_STATE_ICON
final public static String PROPERTY_PRESSED_STATE_ICON(Code)



PROPERTY_ROLLOVER_SELECTED_STATE_ICON
final public static String PROPERTY_ROLLOVER_SELECTED_STATE_ICON(Code)



PROPERTY_ROLLOVER_STATE_ICON
final public static String PROPERTY_ROLLOVER_STATE_ICON(Code)



PROPERTY_SELECTED_STATE_ICON
final public static String PROPERTY_SELECTED_STATE_ICON(Code)



PROPERTY_STATE_ALIGNMENT
final public static String PROPERTY_STATE_ALIGNMENT(Code)



PROPERTY_STATE_ICON
final public static String PROPERTY_STATE_ICON(Code)



PROPERTY_STATE_MARGIN
final public static String PROPERTY_STATE_MARGIN(Code)



PROPERTY_STATE_POSITION
final public static String PROPERTY_STATE_POSITION(Code)



SELECTED_CHANGED_PROPERTY
final public static String SELECTED_CHANGED_PROPERTY(Code)





Method Detail
addChangeListener
public void addChangeListener(ChangeListener l)(Code)
Adds a ChangeListener to receive notification of state changes, i.e., to the selected state of a ToggleButton.
Parameters:
  l - the listener to add



fireStateChanged
public void fireStateChanged()(Code)
Notifies all listeners that have registered for this event type.



getPressedSelectedStateIcon
public ImageReference getPressedSelectedStateIcon()(Code)
Returns the selected state icon displayed when the button is being pressed. the icon



getPressedStateIcon
public ImageReference getPressedStateIcon()(Code)
Returns the default (non-selected) state icon displayed when the button is being pressed. the icon



getRolloverSelectedStateIcon
public ImageReference getRolloverSelectedStateIcon()(Code)
Returns the selected state icon displayed when the mouse cursor is inside the bounds of the button. the icon



getRolloverStateIcon
public ImageReference getRolloverStateIcon()(Code)
Returns the default (non-selected) state icon displayed when the mouse cursor is inside the bounds of the button. the icon



getSelectedStateIcon
public ImageReference getSelectedStateIcon()(Code)
Returns the selected state icon. the icon



getStateAlignment
public Alignment getStateAlignment()(Code)
Returns the alignment of the state icon relative to the button's text/icon. the state alignment



getStateIcon
public ImageReference getStateIcon()(Code)
Returns the default (non-selected) state icon. the icon



getStateMargin
public Extent getStateMargin()(Code)
Returns the margin size between the state icon and the toggle button's icon and/or text. The margin will only be displayed in the case where icon and/or text are present. This property only supports Extents with fixed (i.e., not percent) units. the margin size



getStatePosition
public Alignment getStatePosition()(Code)
Returns the position of the state icon relative to the button's text/icon. the state position



isSelected
public boolean isSelected()(Code)
Determines the selection state. the selection state



processInput
public void processInput(String name, Object value)(Code)

See Also:   nextapp.echo2.app.Component.processInput(java.lang.Stringjava.lang.Object)



removeChangeListener
public void removeChangeListener(ChangeListener l)(Code)
Removes a ChangeListener from being notified of state changes, i.e., to the selected state of a ToggleButton.
Parameters:
  l - the listener to remove



setModel
public void setModel(ButtonModel newValue)(Code)

See Also:   nextapp.echo2.app.button.AbstractButton.setModel(nextapp.echo2.app.button.ButtonModel)



setPressedSelectedStateIcon
public void setPressedSelectedStateIcon(ImageReference newValue)(Code)
Sets the selected state icon displayed when the button is being pressed.
Parameters:
  newValue - the new icon



setPressedStateIcon
public void setPressedStateIcon(ImageReference newValue)(Code)
Sets the default (non-selected) state icon displayed when the button is being pressed.
Parameters:
  newValue - the new icon



setRolloverSelectedStateIcon
public void setRolloverSelectedStateIcon(ImageReference newValue)(Code)
Sets the selected state icon displayed when the mouse cursor is inside the bounds of the button.
Parameters:
  newValue - the new icon



setRolloverStateIcon
public void setRolloverStateIcon(ImageReference newValue)(Code)
Sets the default (non-selected) state icon displayed when the mouse cursor is inside the bounds of the button.
Parameters:
  newValue - the new icon



setSelected
public void setSelected(boolean newValue)(Code)
Sets the selection state.
Parameters:
  newValue - the new selection state



setSelectedStateIcon
public void setSelectedStateIcon(ImageReference newValue)(Code)
Sets the selected state icon.
Parameters:
  newValue - the new icon



setStateAlignment
public void setStateAlignment(Alignment newValue)(Code)
Sets the alignment of the state icon relative to the text/icon of the button. Note that only one of the provided Alignment's settings should be non-default.
Parameters:
  newValue - the new state alignment



setStateIcon
public void setStateIcon(ImageReference newValue)(Code)
Sets the default (non-selected) state icon.
Parameters:
  newValue - the new icon



setStateMargin
public void setStateMargin(Extent newValue)(Code)
Sets the margin size between the state icon and the toggle button's icon and/or text. The margin will only be displayed in the case where icon and/or text are present. This property only supports Extents with fixed (i.e., not percent) units.
Parameters:
  newValue - the new margin size



setStatePosition
public void setStatePosition(Alignment newValue)(Code)
Sets the position of the state icon relative to the text/icon of the button. Note that only one of the provided Alignment's settings should be non-default.
Parameters:
  newValue - the new state position



Fields inherited from nextapp.echo2.app.button.AbstractButton
final public static String ACTION_LISTENERS_CHANGED_PROPERTY(Code)(Java Doc)
final public static String INPUT_CLICK(Code)(Java Doc)
final public static String PROPERTY_ALIGNMENT(Code)(Java Doc)
final public static String PROPERTY_BACKGROUND_IMAGE(Code)(Java Doc)
final public static String PROPERTY_BORDER(Code)(Java Doc)
final public static String PROPERTY_DISABLED_BACKGROUND(Code)(Java Doc)
final public static String PROPERTY_DISABLED_BACKGROUND_IMAGE(Code)(Java Doc)
final public static String PROPERTY_DISABLED_BORDER(Code)(Java Doc)
final public static String PROPERTY_DISABLED_FONT(Code)(Java Doc)
final public static String PROPERTY_DISABLED_FOREGROUND(Code)(Java Doc)
final public static String PROPERTY_DISABLED_ICON(Code)(Java Doc)
final public static String PROPERTY_HEIGHT(Code)(Java Doc)
final public static String PROPERTY_ICON(Code)(Java Doc)
final public static String PROPERTY_ICON_TEXT_MARGIN(Code)(Java Doc)
final public static String PROPERTY_INSETS(Code)(Java Doc)
final public static String PROPERTY_LINE_WRAP(Code)(Java Doc)
final public static String PROPERTY_MODEL(Code)(Java Doc)
final public static String PROPERTY_PRESSED_BACKGROUND(Code)(Java Doc)
final public static String PROPERTY_PRESSED_BACKGROUND_IMAGE(Code)(Java Doc)
final public static String PROPERTY_PRESSED_BORDER(Code)(Java Doc)
final public static String PROPERTY_PRESSED_ENABLED(Code)(Java Doc)
final public static String PROPERTY_PRESSED_FONT(Code)(Java Doc)
final public static String PROPERTY_PRESSED_FOREGROUND(Code)(Java Doc)
final public static String PROPERTY_PRESSED_ICON(Code)(Java Doc)
final public static String PROPERTY_ROLLOVER_BACKGROUND(Code)(Java Doc)
final public static String PROPERTY_ROLLOVER_BACKGROUND_IMAGE(Code)(Java Doc)
final public static String PROPERTY_ROLLOVER_BORDER(Code)(Java Doc)
final public static String PROPERTY_ROLLOVER_ENABLED(Code)(Java Doc)
final public static String PROPERTY_ROLLOVER_FONT(Code)(Java Doc)
final public static String PROPERTY_ROLLOVER_FOREGROUND(Code)(Java Doc)
final public static String PROPERTY_ROLLOVER_ICON(Code)(Java Doc)
final public static String PROPERTY_TEXT(Code)(Java Doc)
final public static String PROPERTY_TEXT_ALIGNMENT(Code)(Java Doc)
final public static String PROPERTY_TEXT_POSITION(Code)(Java Doc)
final public static String PROPERTY_TOOL_TIP_TEXT(Code)(Java Doc)
final public static String PROPERTY_WIDTH(Code)(Java Doc)

Methods inherited from nextapp.echo2.app.button.AbstractButton
public void addActionListener(ActionListener l)(Code)(Java Doc)
public void doAction()(Code)(Java Doc)
public void fireActionPerformed(ActionEvent e)(Code)(Java Doc)
public String getActionCommand()(Code)(Java Doc)
public Alignment getAlignment()(Code)(Java Doc)
public FillImage getBackgroundImage()(Code)(Java Doc)
public Border getBorder()(Code)(Java Doc)
public Color getDisabledBackground()(Code)(Java Doc)
public FillImage getDisabledBackgroundImage()(Code)(Java Doc)
public Border getDisabledBorder()(Code)(Java Doc)
public Font getDisabledFont()(Code)(Java Doc)
public Color getDisabledForeground()(Code)(Java Doc)
public ImageReference getDisabledIcon()(Code)(Java Doc)
public Extent getHeight()(Code)(Java Doc)
public ImageReference getIcon()(Code)(Java Doc)
public Extent getIconTextMargin()(Code)(Java Doc)
public Insets getInsets()(Code)(Java Doc)
public ButtonModel getModel()(Code)(Java Doc)
public Color getPressedBackground()(Code)(Java Doc)
public FillImage getPressedBackgroundImage()(Code)(Java Doc)
public Border getPressedBorder()(Code)(Java Doc)
public Font getPressedFont()(Code)(Java Doc)
public Color getPressedForeground()(Code)(Java Doc)
public ImageReference getPressedIcon()(Code)(Java Doc)
public Color getRolloverBackground()(Code)(Java Doc)
public FillImage getRolloverBackgroundImage()(Code)(Java Doc)
public Border getRolloverBorder()(Code)(Java Doc)
public Font getRolloverFont()(Code)(Java Doc)
public Color getRolloverForeground()(Code)(Java Doc)
public ImageReference getRolloverIcon()(Code)(Java Doc)
public String getText()(Code)(Java Doc)
public Alignment getTextAlignment()(Code)(Java Doc)
public Alignment getTextPosition()(Code)(Java Doc)
public String getToolTipText()(Code)(Java Doc)
public Extent getWidth()(Code)(Java Doc)
public boolean hasActionListeners()(Code)(Java Doc)
public boolean isLineWrap()(Code)(Java Doc)
public boolean isPressedEnabled()(Code)(Java Doc)
public boolean isRolloverEnabled()(Code)(Java Doc)
public boolean isValidChild(Component component)(Code)(Java Doc)
public void processInput(String name, Object value)(Code)(Java Doc)
public void removeActionListener(ActionListener l)(Code)(Java Doc)
public void setActionCommand(String newValue)(Code)(Java Doc)
public void setAlignment(Alignment newValue)(Code)(Java Doc)
public void setBackgroundImage(FillImage newValue)(Code)(Java Doc)
public void setBorder(Border newValue)(Code)(Java Doc)
public void setDisabledBackground(Color newValue)(Code)(Java Doc)
public void setDisabledBackgroundImage(FillImage newValue)(Code)(Java Doc)
public void setDisabledBorder(Border newValue)(Code)(Java Doc)
public void setDisabledFont(Font newValue)(Code)(Java Doc)
public void setDisabledForeground(Color newValue)(Code)(Java Doc)
public void setDisabledIcon(ImageReference newValue)(Code)(Java Doc)
public void setHeight(Extent newValue)(Code)(Java Doc)
public void setIcon(ImageReference newValue)(Code)(Java Doc)
public void setIconTextMargin(Extent newValue)(Code)(Java Doc)
public void setInsets(Insets newValue)(Code)(Java Doc)
public void setLineWrap(boolean newValue)(Code)(Java Doc)
public void setModel(ButtonModel newValue)(Code)(Java Doc)
public void setPressedBackground(Color newValue)(Code)(Java Doc)
public void setPressedBackgroundImage(FillImage newValue)(Code)(Java Doc)
public void setPressedBorder(Border newValue)(Code)(Java Doc)
public void setPressedEnabled(boolean newValue)(Code)(Java Doc)
public void setPressedFont(Font newValue)(Code)(Java Doc)
public void setPressedForeground(Color newValue)(Code)(Java Doc)
public void setPressedIcon(ImageReference newValue)(Code)(Java Doc)
public void setRolloverBackground(Color newValue)(Code)(Java Doc)
public void setRolloverBackgroundImage(FillImage newValue)(Code)(Java Doc)
public void setRolloverBorder(Border newValue)(Code)(Java Doc)
public void setRolloverEnabled(boolean newValue)(Code)(Java Doc)
public void setRolloverFont(Font newValue)(Code)(Java Doc)
public void setRolloverForeground(Color newValue)(Code)(Java Doc)
public void setRolloverIcon(ImageReference newValue)(Code)(Java Doc)
public void setText(String newValue)(Code)(Java Doc)
public void setTextAlignment(Alignment newValue)(Code)(Java Doc)
public void setTextPosition(Alignment newValue)(Code)(Java Doc)
public void setToolTipText(String newValue)(Code)(Java Doc)
public void setWidth(Extent newValue)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.