Java Doc for AbstractButton.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) 


java.lang.Object
   nextapp.echo2.app.Component
      nextapp.echo2.app.button.AbstractButton

All known Subclasses:   nextapp.echo2.app.button.ToggleButton,  nextapp.echo2.app.Button,
AbstractButton
abstract public class AbstractButton extends Component (Code)
An abstract base class for button components. Provides basic properties, a model, and event handling facilities.


Field Summary
final public static  StringACTION_LISTENERS_CHANGED_PROPERTY
    
final public static  StringINPUT_CLICK
    
final public static  StringPROPERTY_ALIGNMENT
    
final public static  StringPROPERTY_BACKGROUND_IMAGE
    
final public static  StringPROPERTY_BORDER
    
final public static  StringPROPERTY_DISABLED_BACKGROUND
    
final public static  StringPROPERTY_DISABLED_BACKGROUND_IMAGE
    
final public static  StringPROPERTY_DISABLED_BORDER
    
final public static  StringPROPERTY_DISABLED_FONT
    
final public static  StringPROPERTY_DISABLED_FOREGROUND
    
final public static  StringPROPERTY_DISABLED_ICON
    
final public static  StringPROPERTY_HEIGHT
    
final public static  StringPROPERTY_ICON
    
final public static  StringPROPERTY_ICON_TEXT_MARGIN
    
final public static  StringPROPERTY_INSETS
    
final public static  StringPROPERTY_LINE_WRAP
    
final public static  StringPROPERTY_MODEL
    
final public static  StringPROPERTY_PRESSED_BACKGROUND
    
final public static  StringPROPERTY_PRESSED_BACKGROUND_IMAGE
    
final public static  StringPROPERTY_PRESSED_BORDER
    
final public static  StringPROPERTY_PRESSED_ENABLED
    
final public static  StringPROPERTY_PRESSED_FONT
    
final public static  StringPROPERTY_PRESSED_FOREGROUND
    
final public static  StringPROPERTY_PRESSED_ICON
    
final public static  StringPROPERTY_ROLLOVER_BACKGROUND
    
final public static  StringPROPERTY_ROLLOVER_BACKGROUND_IMAGE
    
final public static  StringPROPERTY_ROLLOVER_BORDER
    
final public static  StringPROPERTY_ROLLOVER_ENABLED
    
final public static  StringPROPERTY_ROLLOVER_FONT
    
final public static  StringPROPERTY_ROLLOVER_FOREGROUND
    
final public static  StringPROPERTY_ROLLOVER_ICON
    
final public static  StringPROPERTY_TEXT
    
final public static  StringPROPERTY_TEXT_ALIGNMENT
    
final public static  StringPROPERTY_TEXT_POSITION
    
final public static  StringPROPERTY_TOOL_TIP_TEXT
    
final public static  StringPROPERTY_WIDTH
    


Method Summary
public  voidaddActionListener(ActionListener l)
     Adds an ActionListener to receive notification of user actions, i.e., button presses.
public  voiddoAction()
     Programmatically performs a click/activation of the button.
public  voidfireActionPerformed(ActionEvent e)
     Notifies all listeners that have registered for this event type.
public  StringgetActionCommand()
     Retrieves the action command from the ButtonModel.
public  AlignmentgetAlignment()
     Returns the alignment of the button's content.
public  FillImagegetBackgroundImage()
     Returns the background image of the button.
public  BordergetBorder()
     Returns the border displayed around the button.
public  ColorgetDisabledBackground()
     Returns the background color of the button when the button is disabled.
public  FillImagegetDisabledBackgroundImage()
     Returns the background image displayed when the button is disabled.
public  BordergetDisabledBorder()
     Returns the border displayed around the button when the button is disabled.
public  FontgetDisabledFont()
     Returns the font of the button when the button is disabled.
public  ColorgetDisabledForeground()
     Returns the foreground color of the button when the button is disabled.
public  ImageReferencegetDisabledIcon()
     Returns the icon of the button that is displayed when the button is disabled.
public  ExtentgetHeight()
     Returns the height of the button.
public  ImageReferencegetIcon()
     Returns the icon displayed in the button.
public  ExtentgetIconTextMargin()
     Returns the margin size between the icon and the text.
public  InsetsgetInsets()
     Returns the margin between the buttons edge and its content.
public  ButtonModelgetModel()
     Returns the model that this button represents.
public  ColorgetPressedBackground()
     Returns the background color of the button when the button is pressed.
public  FillImagegetPressedBackgroundImage()
     Returns the background image displayed when the button is pressed.
public  BordergetPressedBorder()
     Returns the border displayed around the button when the button is pressed.
public  FontgetPressedFont()
     Returns the font of the button when the button is pressed.
public  ColorgetPressedForeground()
     Returns the foreground color of the button when the button is pressed.
public  ImageReferencegetPressedIcon()
     Returns the icon of the button that is displayed when the button is pressed.
public  ColorgetRolloverBackground()
     Returns the background color of the button when the mouse cursor is inside its bounds.
public  FillImagegetRolloverBackgroundImage()
     Returns the background image displayed when the mouse cursor is inside the button's bounds.
public  BordergetRolloverBorder()
     Returns the border displayed around the button when the mouse cursor is inside its bounds.
public  FontgetRolloverFont()
     Returns the font of the button when the mouse cursor is inside its bounds.
public  ColorgetRolloverForeground()
     Returns the foreground color of the button when the mouse cursor is inside its bounds.
public  ImageReferencegetRolloverIcon()
     Returns the icon of the button that is displayed when the mouse cursor is inside its bounds.
public  StringgetText()
     Returns the text label of the button.
public  AlignmentgetTextAlignment()
     Returns the alignment of the text relative to the icon.
public  AlignmentgetTextPosition()
     Returns the position of the text relative to the icon.
public  StringgetToolTipText()
     Returns the tool tip text (displayed when the mouse cursor is hovered over the component).
public  ExtentgetWidth()
     Returns the width of the button.
public  booleanhasActionListeners()
     Determines if the button has any ActionListeners registered.
public  booleanisLineWrap()
     Determines if the text of the button should wrap in the event that horizontal space is limited.
public  booleanisPressedEnabled()
     Determines if pressed effects are enabled.
public  booleanisRolloverEnabled()
     Determines if rollover effects are enabled.
public  booleanisValidChild(Component component)
     This component does not support children.
public  voidprocessInput(String name, Object value)
    
public  voidremoveActionListener(ActionListener l)
     Removes an ActionListener from being notified of user actions, i.e., button presses.
public  voidsetActionCommand(String newValue)
     Sets the action command of the ButtonModel.
public  voidsetAlignment(Alignment newValue)
     Sets the alignment of the button's content.
public  voidsetBackgroundImage(FillImage newValue)
     Sets the background image of the button.
public  voidsetBorder(Border newValue)
     Sets the border displayed around the button.
public  voidsetDisabledBackground(Color newValue)
     Sets the background color of the button when the button is disabled.
public  voidsetDisabledBackgroundImage(FillImage newValue)
     Sets the background image displayed when the button is disabled.
public  voidsetDisabledBorder(Border newValue)
     Sets the border displayed around the button when the button is disabled.
public  voidsetDisabledFont(Font newValue)
     Sets the font of the button when the button is disabled.
public  voidsetDisabledForeground(Color newValue)
     Sets the foreground color of the button when the button is disabled.
public  voidsetDisabledIcon(ImageReference newValue)
     Sets the icon of the button that is displayed when the button is disabled.
public  voidsetHeight(Extent newValue)
     Sets the height of the button.
public  voidsetIcon(ImageReference newValue)
     Sets the icon displayed in the button.
public  voidsetIconTextMargin(Extent newValue)
     Sets the margin size between the icon and the text.
public  voidsetInsets(Insets newValue)
     Sets the margin between the buttons edge and its content.
public  voidsetLineWrap(boolean newValue)
     Sets whether the text of the button should wrap in the event that horizontal space is limited.
public  voidsetModel(ButtonModel newValue)
     Sets the model that this button represents.
public  voidsetPressedBackground(Color newValue)
     Sets the background color of the button when the button is pressed.
public  voidsetPressedBackgroundImage(FillImage newValue)
     Sets the background image displayed when the button is pressed.
public  voidsetPressedBorder(Border newValue)
     Sets the border displayed around the button when the button is pressed.
public  voidsetPressedEnabled(boolean newValue)
     Sets whether pressed effects are enabled when the button is pressed.
public  voidsetPressedFont(Font newValue)
     Sets the font of the button when the button is pressed.
public  voidsetPressedForeground(Color newValue)
     Sets the foreground color of the button when the button is pressed.
public  voidsetPressedIcon(ImageReference newValue)
     Sets the icon of the button that is displayed when the button is pressed.
public  voidsetRolloverBackground(Color newValue)
     Sets the background color of the button when the mouse cursor is inside its bounds.
public  voidsetRolloverBackgroundImage(FillImage newValue)
    
public  voidsetRolloverBorder(Border newValue)
     Sets the border displayed around the button when the mouse cursor is inside its bounds.
public  voidsetRolloverEnabled(boolean newValue)
     Sets whether rollover effects are enabled when the mouse cursor is inside the button's bounds.
public  voidsetRolloverFont(Font newValue)
     Sets the font of the button when the mouse cursor is inside its bounds.
public  voidsetRolloverForeground(Color newValue)
     Sets the foreground color of the button when the mouse cursor is inside its bounds.
public  voidsetRolloverIcon(ImageReference newValue)
     Sets the icon of the button that is displayed when the mouse cursor is inside its bounds.
public  voidsetText(String newValue)
     Sets the text label of the button.
public  voidsetTextAlignment(Alignment newValue)
     Sets the alignment of the text relative to the icon.
public  voidsetTextPosition(Alignment newValue)
     Sets the position of the text relative to the icon.
public  voidsetToolTipText(String newValue)
     Sets the tool tip text (displayed when the mouse cursor is hovered over the component).
public  voidsetWidth(Extent newValue)
     Sets the width of the button.

Field Detail
ACTION_LISTENERS_CHANGED_PROPERTY
final public static String ACTION_LISTENERS_CHANGED_PROPERTY(Code)



INPUT_CLICK
final public static String INPUT_CLICK(Code)



PROPERTY_ALIGNMENT
final public static String PROPERTY_ALIGNMENT(Code)



PROPERTY_BACKGROUND_IMAGE
final public static String PROPERTY_BACKGROUND_IMAGE(Code)



PROPERTY_BORDER
final public static String PROPERTY_BORDER(Code)



PROPERTY_DISABLED_BACKGROUND
final public static String PROPERTY_DISABLED_BACKGROUND(Code)



PROPERTY_DISABLED_BACKGROUND_IMAGE
final public static String PROPERTY_DISABLED_BACKGROUND_IMAGE(Code)



PROPERTY_DISABLED_BORDER
final public static String PROPERTY_DISABLED_BORDER(Code)



PROPERTY_DISABLED_FONT
final public static String PROPERTY_DISABLED_FONT(Code)



PROPERTY_DISABLED_FOREGROUND
final public static String PROPERTY_DISABLED_FOREGROUND(Code)



PROPERTY_DISABLED_ICON
final public static String PROPERTY_DISABLED_ICON(Code)



PROPERTY_HEIGHT
final public static String PROPERTY_HEIGHT(Code)



PROPERTY_ICON
final public static String PROPERTY_ICON(Code)



PROPERTY_ICON_TEXT_MARGIN
final public static String PROPERTY_ICON_TEXT_MARGIN(Code)



PROPERTY_INSETS
final public static String PROPERTY_INSETS(Code)



PROPERTY_LINE_WRAP
final public static String PROPERTY_LINE_WRAP(Code)



PROPERTY_MODEL
final public static String PROPERTY_MODEL(Code)



PROPERTY_PRESSED_BACKGROUND
final public static String PROPERTY_PRESSED_BACKGROUND(Code)



PROPERTY_PRESSED_BACKGROUND_IMAGE
final public static String PROPERTY_PRESSED_BACKGROUND_IMAGE(Code)



PROPERTY_PRESSED_BORDER
final public static String PROPERTY_PRESSED_BORDER(Code)



PROPERTY_PRESSED_ENABLED
final public static String PROPERTY_PRESSED_ENABLED(Code)



PROPERTY_PRESSED_FONT
final public static String PROPERTY_PRESSED_FONT(Code)



PROPERTY_PRESSED_FOREGROUND
final public static String PROPERTY_PRESSED_FOREGROUND(Code)



PROPERTY_PRESSED_ICON
final public static String PROPERTY_PRESSED_ICON(Code)



PROPERTY_ROLLOVER_BACKGROUND
final public static String PROPERTY_ROLLOVER_BACKGROUND(Code)



PROPERTY_ROLLOVER_BACKGROUND_IMAGE
final public static String PROPERTY_ROLLOVER_BACKGROUND_IMAGE(Code)



PROPERTY_ROLLOVER_BORDER
final public static String PROPERTY_ROLLOVER_BORDER(Code)



PROPERTY_ROLLOVER_ENABLED
final public static String PROPERTY_ROLLOVER_ENABLED(Code)



PROPERTY_ROLLOVER_FONT
final public static String PROPERTY_ROLLOVER_FONT(Code)



PROPERTY_ROLLOVER_FOREGROUND
final public static String PROPERTY_ROLLOVER_FOREGROUND(Code)



PROPERTY_ROLLOVER_ICON
final public static String PROPERTY_ROLLOVER_ICON(Code)



PROPERTY_TEXT
final public static String PROPERTY_TEXT(Code)



PROPERTY_TEXT_ALIGNMENT
final public static String PROPERTY_TEXT_ALIGNMENT(Code)



PROPERTY_TEXT_POSITION
final public static String PROPERTY_TEXT_POSITION(Code)



PROPERTY_TOOL_TIP_TEXT
final public static String PROPERTY_TOOL_TIP_TEXT(Code)



PROPERTY_WIDTH
final public static String PROPERTY_WIDTH(Code)





Method Detail
addActionListener
public void addActionListener(ActionListener l)(Code)
Adds an ActionListener to receive notification of user actions, i.e., button presses.
Parameters:
  l - the listener to add



doAction
public void doAction()(Code)
Programmatically performs a click/activation of the button.



fireActionPerformed
public void fireActionPerformed(ActionEvent e)(Code)
Notifies all listeners that have registered for this event type.
Parameters:
  e - the ActionEvent to send



getActionCommand
public String getActionCommand()(Code)
Retrieves the action command from the ButtonModel. the action command
See Also:   nextapp.echo2.app.button.ButtonModel.getActionCommand



getAlignment
public Alignment getAlignment()(Code)
Returns the alignment of the button's content. Only horizontal alignments are supported. the alignment



getBackgroundImage
public FillImage getBackgroundImage()(Code)
Returns the background image of the button. the background image



getBorder
public Border getBorder()(Code)
Returns the border displayed around the button. the border



getDisabledBackground
public Color getDisabledBackground()(Code)
Returns the background color of the button when the button is disabled. the color



getDisabledBackgroundImage
public FillImage getDisabledBackgroundImage()(Code)
Returns the background image displayed when the button is disabled. the background image



getDisabledBorder
public Border getDisabledBorder()(Code)
Returns the border displayed around the button when the button is disabled. the border



getDisabledFont
public Font getDisabledFont()(Code)
Returns the font of the button when the button is disabled. the font



getDisabledForeground
public Color getDisabledForeground()(Code)
Returns the foreground color of the button when the button is disabled. the color



getDisabledIcon
public ImageReference getDisabledIcon()(Code)
Returns the icon of the button that is displayed when the button is disabled. the icon



getHeight
public Extent getHeight()(Code)
Returns the height of the button. This property only supports Extents with fixed (i.e., not percent) units. the height



getIcon
public ImageReference getIcon()(Code)
Returns the icon displayed in the button. the icon



getIconTextMargin
public Extent getIconTextMargin()(Code)
Returns the margin size between the icon and the text. The margin will only be displayed if the button has both icon and text properties set. This property only supports Extents with fixed (i.e., not percent) units. the margin size



getInsets
public Insets getInsets()(Code)
Returns the margin between the buttons edge and its content. the margin



getModel
public ButtonModel getModel()(Code)
Returns the model that this button represents. the model



getPressedBackground
public Color getPressedBackground()(Code)
Returns the background color of the button when the button is pressed. the color



getPressedBackgroundImage
public FillImage getPressedBackgroundImage()(Code)
Returns the background image displayed when the button is pressed. the background image



getPressedBorder
public Border getPressedBorder()(Code)
Returns the border displayed around the button when the button is pressed. the border



getPressedFont
public Font getPressedFont()(Code)
Returns the font of the button when the button is pressed. the font



getPressedForeground
public Color getPressedForeground()(Code)
Returns the foreground color of the button when the button is pressed. the color



getPressedIcon
public ImageReference getPressedIcon()(Code)
Returns the icon of the button that is displayed when the button is pressed. the icon



getRolloverBackground
public Color getRolloverBackground()(Code)
Returns the background color of the button when the mouse cursor is inside its bounds. the color



getRolloverBackgroundImage
public FillImage getRolloverBackgroundImage()(Code)
Returns the background image displayed when the mouse cursor is inside the button's bounds. the background image



getRolloverBorder
public Border getRolloverBorder()(Code)
Returns the border displayed around the button when the mouse cursor is inside its bounds. the border



getRolloverFont
public Font getRolloverFont()(Code)
Returns the font of the button when the mouse cursor is inside its bounds. the font



getRolloverForeground
public Color getRolloverForeground()(Code)
Returns the foreground color of the button when the mouse cursor is inside its bounds. the color



getRolloverIcon
public ImageReference getRolloverIcon()(Code)
Returns the icon of the button that is displayed when the mouse cursor is inside its bounds. the icon



getText
public String getText()(Code)
Returns the text label of the button. the text label



getTextAlignment
public Alignment getTextAlignment()(Code)
Returns the alignment of the text relative to the icon. the text alignment



getTextPosition
public Alignment getTextPosition()(Code)
Returns the position of the text relative to the icon. the text position



getToolTipText
public String getToolTipText()(Code)
Returns the tool tip text (displayed when the mouse cursor is hovered over the component). the tool tip text



getWidth
public Extent getWidth()(Code)
Returns the width of the button. This property supports Extents with fixed or percentile units. the width



hasActionListeners
public boolean hasActionListeners()(Code)
Determines if the button has any ActionListeners registered. true if any action listeners are registered



isLineWrap
public boolean isLineWrap()(Code)
Determines if the text of the button should wrap in the event that horizontal space is limited. Default value is true. the line wrap state



isPressedEnabled
public boolean isPressedEnabled()(Code)
Determines if pressed effects are enabled. true if pressed effects are enabled
See Also:   AbstractButton.setPressedEnabled(boolean)



isRolloverEnabled
public boolean isRolloverEnabled()(Code)
Determines if rollover effects are enabled. true if rollover effects are enabled
See Also:   AbstractButton.setRolloverEnabled(boolean)



isValidChild
public boolean isValidChild(Component component)(Code)
This component does not support children.
See Also:   nextapp.echo2.app.Component.isValidChild(nextapp.echo2.app.Component)



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

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



removeActionListener
public void removeActionListener(ActionListener l)(Code)
Removes an ActionListener from being notified of user actions, i.e., button presses.
Parameters:
  l - the listener to remove



setActionCommand
public void setActionCommand(String newValue)(Code)
Sets the action command of the ButtonModel.
Parameters:
  newValue - the action command
See Also:   nextapp.echo2.app.button.ButtonModel.setActionCommand(java.lang.String)



setAlignment
public void setAlignment(Alignment newValue)(Code)
Sets the alignment of the button's content. Only horizontal alignments are supported.
Parameters:
  newValue - the new alignment



setBackgroundImage
public void setBackgroundImage(FillImage newValue)(Code)
Sets the background image of the button.
Parameters:
  newValue - the new background image



setBorder
public void setBorder(Border newValue)(Code)
Sets the border displayed around the button.
Parameters:
  newValue - the new border



setDisabledBackground
public void setDisabledBackground(Color newValue)(Code)
Sets the background color of the button when the button is disabled.
Parameters:
  newValue - the new Color



setDisabledBackgroundImage
public void setDisabledBackgroundImage(FillImage newValue)(Code)
Sets the background image displayed when the button is disabled.
Parameters:
  newValue - the new background image



setDisabledBorder
public void setDisabledBorder(Border newValue)(Code)
Sets the border displayed around the button when the button is disabled.
Parameters:
  newValue - the new border



setDisabledFont
public void setDisabledFont(Font newValue)(Code)
Sets the font of the button when the button is disabled.
Parameters:
  newValue - the new Font



setDisabledForeground
public void setDisabledForeground(Color newValue)(Code)
Sets the foreground color of the button when the button is disabled.
Parameters:
  newValue - the new Color



setDisabledIcon
public void setDisabledIcon(ImageReference newValue)(Code)
Sets the icon of the button that is displayed when the button is disabled.
Parameters:
  newValue - the new icon



setHeight
public void setHeight(Extent newValue)(Code)
Sets the height of the button. This property only supports Extents with fixed (i.e., not percent) units.
Parameters:
  newValue - the new height



setIcon
public void setIcon(ImageReference newValue)(Code)
Sets the icon displayed in the button.
Parameters:
  newValue - the new icon



setIconTextMargin
public void setIconTextMargin(Extent newValue)(Code)
Sets the margin size between the icon and the text. The margin will only be displayed if the button has both icon and text properties set. This property only supports Extents with fixed (i.e., not percent) units.
Parameters:
  newValue - the margin size



setInsets
public void setInsets(Insets newValue)(Code)
Sets the margin between the buttons edge and its content.
Parameters:
  newValue - the new margin



setLineWrap
public void setLineWrap(boolean newValue)(Code)
Sets whether the text of the button should wrap in the event that horizontal space is limited. Default value is true.
Parameters:
  newValue - the new line wrap state



setModel
public void setModel(ButtonModel newValue)(Code)
Sets the model that this button represents. The model may not be null.
Parameters:
  newValue - the new ButtonModel



setPressedBackground
public void setPressedBackground(Color newValue)(Code)
Sets the background color of the button when the button is pressed.
Parameters:
  newValue - the new Color



setPressedBackgroundImage
public void setPressedBackgroundImage(FillImage newValue)(Code)
Sets the background image displayed when the button is pressed.
Parameters:
  newValue - the new background image



setPressedBorder
public void setPressedBorder(Border newValue)(Code)
Sets the border displayed around the button when the button is pressed.
Parameters:
  newValue - the new border



setPressedEnabled
public void setPressedEnabled(boolean newValue)(Code)
Sets whether pressed effects are enabled when the button is pressed. Pressed properties have no effect unless this property is set to true. The default value is false.
Parameters:
  newValue - true if pressed effects should be enabled



setPressedFont
public void setPressedFont(Font newValue)(Code)
Sets the font of the button when the button is pressed.
Parameters:
  newValue - the new Font



setPressedForeground
public void setPressedForeground(Color newValue)(Code)
Sets the foreground color of the button when the button is pressed.
Parameters:
  newValue - the new Color



setPressedIcon
public void setPressedIcon(ImageReference newValue)(Code)
Sets the icon of the button that is displayed when the button is pressed.
Parameters:
  newValue - the new icon



setRolloverBackground
public void setRolloverBackground(Color newValue)(Code)
Sets the background color of the button when the mouse cursor is inside its bounds.
Parameters:
  newValue - the new Color



setRolloverBackgroundImage
public void setRolloverBackgroundImage(FillImage newValue)(Code)
Sets the background image displayed when the mouse cursor is inside the button's bounds
Parameters:
  newValue - the new background image



setRolloverBorder
public void setRolloverBorder(Border newValue)(Code)
Sets the border displayed around the button when the mouse cursor is inside its bounds.
Parameters:
  newValue - the new border



setRolloverEnabled
public void setRolloverEnabled(boolean newValue)(Code)
Sets whether rollover effects are enabled when the mouse cursor is inside the button's bounds. Rollover properties have no effect unless this property is set to true. The default value is false.
Parameters:
  newValue - true if rollover effects should be enabled



setRolloverFont
public void setRolloverFont(Font newValue)(Code)
Sets the font of the button when the mouse cursor is inside its bounds.
Parameters:
  newValue - the new Font



setRolloverForeground
public void setRolloverForeground(Color newValue)(Code)
Sets the foreground color of the button when the mouse cursor is inside its bounds.
Parameters:
  newValue - the new Color



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



setText
public void setText(String newValue)(Code)
Sets the text label of the button.
Parameters:
  newValue - the new text label



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



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



setToolTipText
public void setToolTipText(String newValue)(Code)
Sets the tool tip text (displayed when the mouse cursor is hovered over the component).
Parameters:
  newValue - the new tool tip text



setWidth
public void setWidth(Extent newValue)(Code)
Sets the width of the button. This property supports Extents with fixed or percentile units.
Parameters:
  newValue - the new width



Fields inherited from nextapp.echo2.app.Component
final public static String CHILDREN_CHANGED_PROPERTY(Code)(Java Doc)
final public static String ENABLED_CHANGED_PROPERTY(Code)(Java Doc)
final public static String FOCUS_TRAVERSAL_INDEX_CHANGED_PROPERTY(Code)(Java Doc)
final public static String FOCUS_TRAVERSAL_PARTICIPANT_CHANGED_PROPERTY(Code)(Java Doc)
final public static String LAYOUT_DIRECTION_CHANGED_PROPERTY(Code)(Java Doc)
final public static String LOCALE_CHANGED_PROPERTY(Code)(Java Doc)
final public static String PROPERTY_BACKGROUND(Code)(Java Doc)
final public static String PROPERTY_FONT(Code)(Java Doc)
final public static String PROPERTY_FOREGROUND(Code)(Java Doc)
final public static String PROPERTY_LAYOUT_DATA(Code)(Java Doc)
final public static String STYLE_CHANGED_PROPERTY(Code)(Java Doc)
final public static String STYLE_NAME_CHANGED_PROPERTY(Code)(Java Doc)
final public static String VISIBLE_CHANGED_PROPERTY(Code)(Java Doc)

Methods inherited from nextapp.echo2.app.Component
public void add(Component c)(Code)(Java Doc)
public void add(Component c, int n) throws IllegalChildException(Code)(Java Doc)
public void addPropertyChangeListener(PropertyChangeListener l)(Code)(Java Doc)
public void dispose()(Code)(Java Doc)
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)(Code)(Java Doc)
public ApplicationInstance getApplicationInstance()(Code)(Java Doc)
public Color getBackground()(Code)(Java Doc)
final public Component getComponent(int n)(Code)(Java Doc)
final public Component getComponent(String id)(Code)(Java Doc)
final public int getComponentCount()(Code)(Java Doc)
final public Component[] getComponents()(Code)(Java Doc)
protected EventListenerList getEventListenerList()(Code)(Java Doc)
final public int getFocusTraversalIndex()(Code)(Java Doc)
public Font getFont()(Code)(Java Doc)
public Color getForeground()(Code)(Java Doc)
public String getId()(Code)(Java Doc)
final public Object getIndexedProperty(String propertyName, int propertyIndex)(Code)(Java Doc)
public LayoutData getLayoutData()(Code)(Java Doc)
public LayoutDirection getLayoutDirection()(Code)(Java Doc)
public Locale getLocale()(Code)(Java Doc)
final public Component getParent()(Code)(Java Doc)
final public Object getProperty(String propertyName)(Code)(Java Doc)
public String getRenderId()(Code)(Java Doc)
final public Object getRenderIndexedProperty(String propertyName, int propertyIndex)(Code)(Java Doc)
final public Object getRenderIndexedProperty(String propertyName, int propertyIndex, Object defaultValue)(Code)(Java Doc)
final public LayoutDirection getRenderLayoutDirection()(Code)(Java Doc)
final public Locale getRenderLocale()(Code)(Java Doc)
final public Object getRenderProperty(String propertyName)(Code)(Java Doc)
final public Object getRenderProperty(String propertyName, Object defaultValue)(Code)(Java Doc)
final public Style getStyle()(Code)(Java Doc)
final public String getStyleName()(Code)(Java Doc)
final public Component getVisibleComponent(int n)(Code)(Java Doc)
final public int getVisibleComponentCount()(Code)(Java Doc)
final public Component[] getVisibleComponents()(Code)(Java Doc)
protected boolean hasEventListenerList()(Code)(Java Doc)
final public int indexOf(Component c)(Code)(Java Doc)
public void init()(Code)(Java Doc)
final public boolean isAncestorOf(Component c)(Code)(Java Doc)
final public boolean isEnabled()(Code)(Java Doc)
public boolean isFocusTraversalParticipant()(Code)(Java Doc)
final public boolean isRegistered()(Code)(Java Doc)
final public boolean isRenderEnabled()(Code)(Java Doc)
final public boolean isRenderVisible()(Code)(Java Doc)
public boolean isValidChild(Component child)(Code)(Java Doc)
public boolean isValidParent(Component parent)(Code)(Java Doc)
final public boolean isVisible()(Code)(Java Doc)
public void processInput(String inputName, Object inputValue)(Code)(Java Doc)
public void remove(Component c)(Code)(Java Doc)
public void remove(int n)(Code)(Java Doc)
public void removeAll()(Code)(Java Doc)
public void removePropertyChangeListener(PropertyChangeListener l)(Code)(Java Doc)
public void setBackground(Color newValue)(Code)(Java Doc)
public void setEnabled(boolean newValue)(Code)(Java Doc)
public void setFocusTraversalIndex(int newValue)(Code)(Java Doc)
public void setFocusTraversalParticipant(boolean newValue)(Code)(Java Doc)
public void setFont(Font newValue)(Code)(Java Doc)
public void setForeground(Color newValue)(Code)(Java Doc)
public void setId(String id)(Code)(Java Doc)
public void setIndexedProperty(String propertyName, int propertyIndex, Object newValue)(Code)(Java Doc)
public void setLayoutData(LayoutData newValue)(Code)(Java Doc)
public void setLayoutDirection(LayoutDirection newValue)(Code)(Java Doc)
public void setLocale(Locale newValue)(Code)(Java Doc)
public void setProperty(String propertyName, Object newValue)(Code)(Java Doc)
public void setRenderId(String renderId)(Code)(Java Doc)
public void setStyle(Style newValue)(Code)(Java Doc)
public void setStyleName(String newValue)(Code)(Java Doc)
public void setVisible(boolean newValue)(Code)(Java Doc)
public void validate()(Code)(Java Doc)
public boolean verifyInput(String inputName, Object inputValue)(Code)(Java Doc)
final public int visibleIndexOf(Component c)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.