Java Doc for SAbstractButton.java in  » Swing-Library » wings3 » org » wings » 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 » Swing Library » wings3 » org.wings 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.wings.SComponent
      org.wings.SAbstractIconTextCompound
         org.wings.SAbstractButton

All known Subclasses:   org.wings.SButton,  org.wings.SToggleButton,  org.wings.SRadioButton,  org.wings.SCheckBox,
SAbstractButton
abstract public class SAbstractButton extends SAbstractIconTextCompound implements LowLevelEventListener(Code)
Base class for components with button functionality, ie. the need to handle ActionListener notification.
author:
   Armin Haaf


Field Summary
final public static  StringCHECKBOX
    
final public static  StringIMAGE_BUTTON
    
final public static  StringRADIOBUTTON
    
final public static  StringRESET_BUTTON
    
final public static  StringSUBMIT_BUTTON
    
protected  StringactionCommand
    

Constructor Summary
public  SAbstractButton(String text)
     Create a button with given text.
public  SAbstractButton(Action action)
    
public  SAbstractButton(String text, String type)
     Creates a new Button with the given Text and the given Type.
public  SAbstractButton()
    

Method Summary
public  voidaddActionListener(ActionListener listener)
     Adds an ActionListener to the button.
protected  voidconfigurePropertiesFromAction(Action a)
    
protected  PropertyChangeListenercreateActionPropertyChangeListener(Action a)
    
public  voiddoClick()
    
protected  voidfireActionPerformed(ActionEvent event)
     Fire an ActionEvent at each registered listener.
public  voidfireFinalEvents()
    
public  voidfireIntermediateEvents()
    
public  ActiongetAction()
     Returns the action for this ActionEvent source, or null if no Action is set.
final public  StringgetActionCommand()
     Returns the action command for this button.
public  ActionListener[]getActionListeners()
     Returns an array of all the ActionListeners added to this AbstractButton with addActionListener().
public  StringgetDeselectionParameter()
    
final public  StringgetEventTarget()
    
final public  SButtonGroupgetGroup()
    
public  StringgetMnemonic()
    
public  StringgetSelectionParameter()
    
public  StringgetToggleSelectionParameter()
    
final public  StringgetType()
    
public  booleanisEpochCheckEnabled()
    
public  booleanisWordWrap()
     Determiens if the label text word wrap inside the browser.
protected  booleanparseSelectionToggle(String toggleParameter)
    
public  voidprocessLowLevelEvent(String action, String[] values)
    
public  voidremoveActionListener(ActionListener listener)
    
public  voidsetAction(Action a)
     Sets the action for the ActionEvent source.
public  voidsetActionCommand(String ac)
     Sets the action command for this button.
public  voidsetCG(ButtonCG cg)
    
public  voidsetEpochCheckEnabled(boolean epochCheckEnabled)
    
public  voidsetEventTarget(String target)
    
protected  voidsetGroup(SButtonGroup g)
     Add this button to a button group.
public  voidsetMnemonic(String mnemonic)
    
protected  voidsetParentFrame(SFrame f)
    
public  voidsetSelected(boolean b)
     Sets the state of the button.
public  voidsetType(String t)
     Sets the button type.
public  voidsetWordWrap(boolean wordWrap)
     Defines if the label is allowed to wrap.

Field Detail
CHECKBOX
final public static String CHECKBOX(Code)



IMAGE_BUTTON
final public static String IMAGE_BUTTON(Code)



RADIOBUTTON
final public static String RADIOBUTTON(Code)



RESET_BUTTON
final public static String RESET_BUTTON(Code)



SUBMIT_BUTTON
final public static String SUBMIT_BUTTON(Code)



actionCommand
protected String actionCommand(Code)




Constructor Detail
SAbstractButton
public SAbstractButton(String text)(Code)
Create a button with given text.
Parameters:
  text - the button text



SAbstractButton
public SAbstractButton(Action action)(Code)



SAbstractButton
public SAbstractButton(String text, String type)(Code)
Creates a new Button with the given Text and the given Type.
Parameters:
  text - the button text
Parameters:
  type - the button type
See Also:   SAbstractButton.setType



SAbstractButton
public SAbstractButton()(Code)
Creates a new submit button




Method Detail
addActionListener
public void addActionListener(ActionListener listener)(Code)
Adds an ActionListener to the button.
Parameters:
  listener - the ActionListener to be added



configurePropertiesFromAction
protected void configurePropertiesFromAction(Action a)(Code)



createActionPropertyChangeListener
protected PropertyChangeListener createActionPropertyChangeListener(Action a)(Code)



doClick
public void doClick()(Code)
Simulates an click on the Button



fireActionPerformed
protected void fireActionPerformed(ActionEvent event)(Code)
Fire an ActionEvent at each registered listener.
Parameters:
  event - supplied ActionEvent



fireFinalEvents
public void fireFinalEvents()(Code)



fireIntermediateEvents
public void fireIntermediateEvents()(Code)



getAction
public Action getAction()(Code)
Returns the action for this ActionEvent source, or null if no Action is set. the Action for this ActionEventsource, or null



getActionCommand
final public String getActionCommand()(Code)
Returns the action command for this button. the action command for this button



getActionListeners
public ActionListener[] getActionListeners()(Code)
Returns an array of all the ActionListeners added to this AbstractButton with addActionListener(). all of the ActionListeners added or an emptyarray if no listeners have been added



getDeselectionParameter
public String getDeselectionParameter()(Code)



getEventTarget
final public String getEventTarget()(Code)



getGroup
final public SButtonGroup getGroup()(Code)
Return the Button group where this button lies in Button Group or null if not in a group



getMnemonic
public String getMnemonic()(Code)



getSelectionParameter
public String getSelectionParameter()(Code)



getToggleSelectionParameter
public String getToggleSelectionParameter()(Code)



getType
final public String getType()(Code)
Delifers the Button Type Button Type



isEpochCheckEnabled
public boolean isEpochCheckEnabled()(Code)

See Also:   LowLevelEventListener.isEpochCheckEnabled
See Also:   



isWordWrap
public boolean isWordWrap()(Code)
Determiens if the label text word wrap inside the browser. Defaults to false (Swing). false if the label should not word wrap an be in line as in Swing.



parseSelectionToggle
protected boolean parseSelectionToggle(String toggleParameter)(Code)



processLowLevelEvent
public void processLowLevelEvent(String action, String[] values)(Code)



removeActionListener
public void removeActionListener(ActionListener listener)(Code)
Removes the supplied Listener from the listener list



setAction
public void setAction(Action a)(Code)
Sets the action for the ActionEvent source. the new action code will replace the old one but not the one bound to the actionListener
Parameters:
  a - the Action for the AbstractButton,



setActionCommand
public void setActionCommand(String ac)(Code)
Sets the action command for this button.
Parameters:
  ac - the action command for this button



setCG
public void setCG(ButtonCG cg)(Code)



setEpochCheckEnabled
public void setEpochCheckEnabled(boolean epochCheckEnabled)(Code)

See Also:   LowLevelEventListener.isEpochCheckEnabled
See Also:   



setEventTarget
public void setEventTarget(String target)(Code)



setGroup
protected void setGroup(SButtonGroup g)(Code)
Add this button to a button group. This influences the event-prefix this button reports to the request dispatcher: it will change to the button group's prefix.



setMnemonic
public void setMnemonic(String mnemonic)(Code)



setParentFrame
protected void setParentFrame(SFrame f)(Code)



setSelected
public void setSelected(boolean b)(Code)
Sets the state of the button. *
Parameters:
  b - true if the button is selected, otherwise false



setType
public void setType(String t)(Code)
Sets the button type. Use one of the following types:



setWordWrap
public void setWordWrap(boolean wordWrap)(Code)
Defines if the label is allowed to wrap.
Parameters:
  wordWrap - Set to true if you want labels to allow to break into more lines than passed.



Fields inherited from org.wings.SAbstractIconTextCompound
final public static int DISABLED_ICON(Code)(Java Doc)
final public static int DISABLED_SELECTED_ICON(Code)(Java Doc)
final public static int ENABLED_ICON(Code)(Java Doc)
final public static int ICON_COUNT(Code)(Java Doc)
final public static int PRESSED_ICON(Code)(Java Doc)
final public static int ROLLOVER_ICON(Code)(Java Doc)
final public static int ROLLOVER_SELECTED_ICON(Code)(Java Doc)
final public static int SELECTED_ICON(Code)(Java Doc)
final public static Selector SELECTOR_SELECTED(Code)(Java Doc)
protected transient ChangeEvent changeEvent(Code)(Java Doc)
protected ChangeListener changeListener(Code)(Java Doc)

Methods inherited from org.wings.SAbstractIconTextCompound
public void addChangeListener(ChangeListener l)(Code)(Java Doc)
public void addItemListener(ItemListener il)(Code)(Java Doc)
final protected void delayEvents(boolean b)(Code)(Java Doc)
public void fireFinalEvents()(Code)(Java Doc)
public void fireIntermediateEvents()(Code)(Java Doc)
protected void fireItemStateChanged(ItemEvent ie)(Code)(Java Doc)
protected void fireStateChanged()(Code)(Java Doc)
public ChangeListener[] getChangeListeners()(Code)(Java Doc)
public SIcon getDisabledIcon()(Code)(Java Doc)
public SIcon getDisabledSelectedIcon()(Code)(Java Doc)
public int getHorizontalTextPosition()(Code)(Java Doc)
public SIcon getIcon()(Code)(Java Doc)
public int getIconTextGap()(Code)(Java Doc)
public ItemListener[] getItemListeners()(Code)(Java Doc)
public SButtonModel getModel()(Code)(Java Doc)
public SIcon getPressedIcon()(Code)(Java Doc)
public SIcon getRolloverIcon()(Code)(Java Doc)
public SIcon getRolloverSelectedIcon()(Code)(Java Doc)
public SIcon getSelectedIcon()(Code)(Java Doc)
public Object[] getSelectedObjects()(Code)(Java Doc)
public Color getSelectionBackground()(Code)(Java Doc)
public SFont getSelectionFont()(Code)(Java Doc)
public Color getSelectionForeground()(Code)(Java Doc)
public String getText()(Code)(Java Doc)
public int getVerticalTextPosition()(Code)(Java Doc)
public boolean isSelected()(Code)(Java Doc)
public void removeChangeListener(ChangeListener l)(Code)(Java Doc)
public void removeItemListener(ItemListener il)(Code)(Java Doc)
public void setDisabledIcon(SIcon icon)(Code)(Java Doc)
public void setDisabledSelectedIcon(SIcon icon)(Code)(Java Doc)
public void setHorizontalTextPosition(int textPosition)(Code)(Java Doc)
public void setIcon(SIcon i)(Code)(Java Doc)
public void setIconTextGap(int gap)(Code)(Java Doc)
public void setIcons(SIcon[] icons)(Code)(Java Doc)
public void setModel(SButtonModel model)(Code)(Java Doc)
public void setPressedIcon(SIcon icon)(Code)(Java Doc)
public void setRolloverIcon(SIcon icon)(Code)(Java Doc)
public void setRolloverSelectedIcon(SIcon icon)(Code)(Java Doc)
public void setSelected(boolean selected)(Code)(Java Doc)
public void setSelectedIcon(SIcon icon)(Code)(Java Doc)
public void setSelectionBackground(Color color)(Code)(Java Doc)
public void setSelectionFont(SFont font)(Code)(Java Doc)
public void setSelectionForeground(Color color)(Code)(Java Doc)
public void setText(String t)(Code)(Java Doc)
public void setVerticalTextPosition(int textPosition)(Code)(Java Doc)
final protected boolean shouldDelayEvents()(Code)(Java Doc)

Fields inherited from org.wings.SComponent
final public static int DONE_RENDERING(Code)(Java Doc)
final public static Selector SELECTOR_ALL(Code)(Java Doc)
final public static int START_RENDERING(Code)(Java Doc)
final public static int WHEN_FOCUSED_OR_ANCESTOR_OF_FOCUSED_COMPONENT(Code)(Java Doc)
final public static int WHEN_IN_FOCUSED_FRAME(Code)(Java Doc)
protected Map<Selector, Style> dynamicStyles(Code)(Java Doc)
protected boolean enabled(Code)(Java Doc)
protected boolean visible(Code)(Java Doc)

Methods inherited from org.wings.SComponent
final public void addComponentListener(SComponentListener l)(Code)(Java Doc)
public void addDynamicStyle(Style style)(Code)(Java Doc)
final protected void addEventListener(Class<T> type, T listener)(Code)(Java Doc)
public void addNotify()(Code)(Java Doc)
final public void addParentFrameListener(SParentFrameListener l)(Code)(Java Doc)
final public void addRenderListener(SRenderListener renderListener)(Code)(Java Doc)
final public void addScriptListener(ScriptListener listener)(Code)(Java Doc)
public void addStyle(String additionalCssClassName)(Code)(Java Doc)
public Object clone()(Code)(Java Doc)
protected void fireComponentChangeEvent(SComponentEvent aEvent)(Code)(Java Doc)
public void fireFinalEvents()(Code)(Java Doc)
protected void fireKeyEvents()(Code)(Java Doc)
final public void fireRenderEvent(int type)(Code)(Java Doc)
public ActionMap getActionMap()(Code)(Java Doc)
public Color getBackground()(Code)(Java Doc)
public SBorder getBorder()(Code)(Java Doc)
public ComponentCG getCG()(Code)(Java Doc)
final public Object getClientProperty(Object key)(Code)(Java Doc)
public SPopupMenu getComponentPopupMenu()(Code)(Java Doc)
public Style getDynamicStyle(Selector selector)(Code)(Java Doc)
public Collection getDynamicStyles()(Code)(Java Doc)
public int getFocusTraversalIndex()(Code)(Java Doc)
public SFont getFont()(Code)(Java Doc)
public Color getForeground()(Code)(Java Doc)
public int getHorizontalAlignment()(Code)(Java Doc)
public InputMap getInputMap()(Code)(Java Doc)
public InputMap getInputMap(int condition)(Code)(Java Doc)
final protected int getListenerCount(Class type)(Code)(Java Doc)
final protected Object[] getListenerList()(Code)(Java Doc)
final public EventListener[] getListeners(Class<? extends EventListener> type)(Code)(Java Doc)
public String getLowLevelEventId()(Code)(Java Doc)
final public String getName()(Code)(Java Doc)
final public SContainer getParent()(Code)(Java Doc)
public SFrame getParentFrame()(Code)(Java Doc)
public SDimension getPreferredSize()(Code)(Java Doc)
public RequestURL getRequestURL()(Code)(Java Doc)
public boolean getResidesInForm()(Code)(Java Doc)
public List<ScriptListener> getScriptListenerList()(Code)(Java Doc)
public ScriptListener[] getScriptListeners()(Code)(Java Doc)
final public Session getSession()(Code)(Java Doc)
public boolean getShowAsFormComponent()(Code)(Java Doc)
public String getStyle()(Code)(Java Doc)
public String getToolTipText()(Code)(Java Doc)
public int getVerticalAlignment()(Code)(Java Doc)
public void invite(ComponentVisitor visitor) throws Exception(Code)(Java Doc)
protected static boolean isDifferent(Object oldObject, Object newObject)(Code)(Java Doc)
public boolean isEnabled()(Code)(Java Doc)
public boolean isFocusOwner()(Code)(Java Doc)
public boolean isRecursivelyVisible()(Code)(Java Doc)
public boolean isReloadForced()(Code)(Java Doc)
protected boolean isUpdatePossible()(Code)(Java Doc)
public boolean isVisible()(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
protected void processComponentEvent(SComponentListener listener, SComponentEvent e)(Code)(Java Doc)
protected boolean processKeyEvents(String[] values)(Code)(Java Doc)
protected void processLowLevelEvent(String name, String[] values)(Code)(Java Doc)
final public void putClientProperty(Object key, Object value)(Code)(Java Doc)
final void register()(Code)(Java Doc)
public void reload()(Code)(Java Doc)
final protected void reloadIfChange(Object oldVal, Object newVal)(Code)(Java Doc)
final protected void reloadIfChange(int oldVal, int newVal)(Code)(Java Doc)
final protected void reloadIfChange(boolean oldVal, boolean newVal)(Code)(Java Doc)
final protected void reloadIfChange(byte oldVal, byte newVal)(Code)(Java Doc)
final protected void reloadIfChange(short oldVal, short newVal)(Code)(Java Doc)
final protected void reloadIfChange(long oldVal, long newVal)(Code)(Java Doc)
final protected void reloadIfChange(float oldVal, float newVal)(Code)(Java Doc)
final protected void reloadIfChange(double oldVal, double newVal)(Code)(Java Doc)
final protected void reloadIfChange(char oldVal, char newVal)(Code)(Java Doc)
final public void removeComponentListener(SComponentListener l)(Code)(Java Doc)
public void removeDynamicStyle(Selector selector)(Code)(Java Doc)
final protected void removeEventListener(Class<T> type, T listener)(Code)(Java Doc)
public void removeNotify()(Code)(Java Doc)
final public void removeParentFrameListener(SParentFrameListener l)(Code)(Java Doc)
final public void removeRenderListener(SRenderListener renderListener)(Code)(Java Doc)
final public void removeScriptListener(ScriptListener listener)(Code)(Java Doc)
public void removeStyle(String cssStyleClassName)(Code)(Java Doc)
public void requestFocus()(Code)(Java Doc)
public void scrollRectToVisible(Rectangle aRect)(Code)(Java Doc)
public void setActionMap(ActionMap actionMap)(Code)(Java Doc)
public void setAttribute(String cssPropertyName, String value)(Code)(Java Doc)
public void setAttribute(CSSProperty property, String propertyValue)(Code)(Java Doc)
public void setAttribute(Selector selector, CSSProperty property, String propertyValue)(Code)(Java Doc)
public void setAttribute(Selector selector, CSSProperty property, SIcon icon)(Code)(Java Doc)
public void setAttribute(Selector selector, CSSProperty property, Color color)(Code)(Java Doc)
public void setAttributes(Selector selector, CSSAttributeSet attributes)(Code)(Java Doc)
public void setBackground(Color color)(Code)(Java Doc)
public void setBorder(SBorder border)(Code)(Java Doc)
public void setCG(ComponentCG newCG)(Code)(Java Doc)
public void setComponentPopupMenu(SPopupMenu popupMenu)(Code)(Java Doc)
public void setDynamicStyles(Collection dynamicStyles)(Code)(Java Doc)
public void setEnabled(boolean enabled)(Code)(Java Doc)
public void setFocusTraversalIndex(int index)(Code)(Java Doc)
public void setFont(SFont font)(Code)(Java Doc)
public void setForeground(Color color)(Code)(Java Doc)
public void setHorizontalAlignment(int alignment)(Code)(Java Doc)
public void setInputMap(InputMap inputMap)(Code)(Java Doc)
public void setInputMap(int condition, InputMap inputMap)(Code)(Java Doc)
public void setName(String uniqueName)(Code)(Java Doc)
public void setNameRaw(String uncheckedName)(Code)(Java Doc)
public void setParent(SContainer parent)(Code)(Java Doc)
protected void setParentFrame(SFrame parentFrame)(Code)(Java Doc)
public void setPreferredSize(SDimension preferredSize)(Code)(Java Doc)
public void setReloadForced(boolean forced)(Code)(Java Doc)
public void setShowAsFormComponent(boolean showAsFormComponent)(Code)(Java Doc)
public void setStyle(String cssClassName)(Code)(Java Doc)
public void setToolTipText(String t)(Code)(Java Doc)
public void setVerticalAlignment(int alignment)(Code)(Java Doc)
public void setVisible(boolean visible)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final void unregister()(Code)(Java Doc)
public void update(Update update)(Code)(Java Doc)
public void updateCG()(Code)(Java Doc)
public void write(Device s) throws IOException(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.