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

All known Subclasses:   org.wings.SAbstractButton,  org.wings.SAbstractClickable,
SAbstractIconTextCompound
abstract public class SAbstractIconTextCompound extends SComponent implements ItemSelectable(Code)
Base class for elements with icon and text like SAbstractButton and SClickable . It supports 7 different icon states.
author:
   Armin Haaf


Field Summary
final public static  intDISABLED_ICON
    
final public static  intDISABLED_SELECTED_ICON
    
final public static  intENABLED_ICON
    
final public static  intICON_COUNT
    
final public static  intPRESSED_ICON
    
final public static  intROLLOVER_ICON
    
final public static  intROLLOVER_SELECTED_ICON
    
final public static  intSELECTED_ICON
    
final public static  SelectorSELECTOR_SELECTED
    
protected transient  ChangeEventchangeEvent
    
protected  ChangeListenerchangeListener
     The button model's changeListener.

Constructor Summary
public  SAbstractIconTextCompound(String text)
     Create a button with given text.
public  SAbstractIconTextCompound()
    

Method Summary
public  voidaddChangeListener(ChangeListener l)
     Adds a ChangeListener to the button.
public  voidaddItemListener(ItemListener il)
     Adds a ItemListener to the button.
final protected  voiddelayEvents(boolean b)
    
public  voidfireFinalEvents()
    
public  voidfireIntermediateEvents()
    
protected  voidfireItemStateChanged(ItemEvent ie)
     Reports a selection change.
protected  voidfireStateChanged()
     Notifies all listeners that have registered interest for notification on this event type.
public  ChangeListener[]getChangeListeners()
     Returns an array of all the ChangeListeners added to this SAbstractIconTextCompound with addChangeListener().
public  SIcongetDisabledIcon()
     Returns the the icon of a compound that is disabled.
public  SIcongetDisabledSelectedIcon()
     Returns the icon of a selected compound that is disabled.
public  intgetHorizontalTextPosition()
    
public  SIcongetIcon()
     Returns the icon of the Compound.
public  intgetIconTextGap()
    
public  ItemListener[]getItemListeners()
     Returns an array of all the ItemListeners added to this SAbstractIconTextCompound with addItemListener().
public  SButtonModelgetModel()
    
public  SIcongetPressedIcon()
     Returns the icon that is displayed when a compound is pressed with the mouse.
public  SIcongetRolloverIcon()
     Returns the icon that is displayed as rollOver effect (meaning the icon shown when the mouse is just positioned over the compound).
public  SIcongetRolloverSelectedIcon()
     Returns the the rollOver icon of a selected compound.
public  SIcongetSelectedIcon()
     Returns the icon of a selected compound.
public  Object[]getSelectedObjects()
     Returns the selected items or null if no items are selected.
public  ColorgetSelectionBackground()
     Return the background color.
public  SFontgetSelectionFont()
     Return the font.
public  ColorgetSelectionForeground()
     Return the foreground color.
public  StringgetText()
     Return the text of the button.
public  intgetVerticalTextPosition()
    
public  booleanisSelected()
    
public  voidremoveChangeListener(ChangeListener l)
     Removes a ChangeListener from the button.
public  voidremoveItemListener(ItemListener il)
     Remove the given itemListener from list of item listeners.
public  voidsetDisabledIcon(SIcon icon)
     Sets the icon that is displayed when a compound is disabled.
public  voidsetDisabledSelectedIcon(SIcon icon)
     Sets the Icon that is displayed when a selected compound is disabled .
public  voidsetHorizontalTextPosition(int textPosition)
    
public  voidsetIcon(SIcon i)
     Sets the icon for the compound.
public  voidsetIconTextGap(int gap)
    
public  voidsetIcons(SIcon[] icons)
     Sets the proper icons for buttonstatus enabled resp.
public  voidsetModel(SButtonModel model)
    
public  voidsetPressedIcon(SIcon icon)
     Sets the icon that is displayed when the compound is pressed with the mouse.
public  voidsetRolloverIcon(SIcon icon)
     Sets the icon that is displayed as rollOver effect (meaning the icon shown when the mouse is just positioned over the compound).
public  voidsetRolloverSelectedIcon(SIcon icon)
     Sets the icon that is displayed as rollover effect of a selected compound (meaning the icon shown when the mouse is just positioned over the selected compound).
public  voidsetSelected(boolean selected)
     Toggle the selection.
public  voidsetSelectedIcon(SIcon icon)
     Sets the icon that is displayed when a compound is selected.
public  voidsetSelectionBackground(Color color)
     Set the foreground color.
public  voidsetSelectionFont(SFont font)
     Set the font.
public  voidsetSelectionForeground(Color color)
     Set the foreground color.
public  voidsetText(String t)
     Sets the label of the button.
public  voidsetVerticalTextPosition(int textPosition)
    
final protected  booleanshouldDelayEvents()
    

Field Detail
DISABLED_ICON
final public static int DISABLED_ICON(Code)



DISABLED_SELECTED_ICON
final public static int DISABLED_SELECTED_ICON(Code)



ENABLED_ICON
final public static int ENABLED_ICON(Code)



ICON_COUNT
final public static int ICON_COUNT(Code)



PRESSED_ICON
final public static int PRESSED_ICON(Code)



ROLLOVER_ICON
final public static int ROLLOVER_ICON(Code)



ROLLOVER_SELECTED_ICON
final public static int ROLLOVER_SELECTED_ICON(Code)



SELECTED_ICON
final public static int SELECTED_ICON(Code)



SELECTOR_SELECTED
final public static Selector SELECTOR_SELECTED(Code)
A Pseudo selector for buttons in selected state Refer to SComponent.setAttribute(org.wings.style.Selectororg.wings.style.CSSPropertyString)



changeEvent
protected transient ChangeEvent changeEvent(Code)



changeListener
protected ChangeListener changeListener(Code)
The button model's changeListener.




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



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




Method Detail
addChangeListener
public void addChangeListener(ChangeListener l)(Code)
Adds a ChangeListener to the button.
Parameters:
  l - the listener to be added



addItemListener
public void addItemListener(ItemListener il)(Code)
Adds a ItemListener to the button.
See Also:   SAbstractIconTextCompound.removeItemListener(ItemListener)



delayEvents
final protected void delayEvents(boolean b)(Code)



fireFinalEvents
public void fireFinalEvents()(Code)



fireIntermediateEvents
public void fireIntermediateEvents()(Code)



fireItemStateChanged
protected void fireItemStateChanged(ItemEvent ie)(Code)
Reports a selection change.
Parameters:
  ie - report this event to all listeners
See Also:   java.awt.event.ItemListener
See Also:   java.awt.ItemSelectable



fireStateChanged
protected void fireStateChanged()(Code)
Notifies all listeners that have registered interest for notification on this event type. The event instance is lazily created using the parameters passed into the fire method.
See Also:   EventListenerList



getChangeListeners
public ChangeListener[] getChangeListeners()(Code)
Returns an array of all the ChangeListeners added to this SAbstractIconTextCompound with addChangeListener(). all of the ChangeListeners added or an emptyarray if no listeners have been added



getDisabledIcon
public SIcon getDisabledIcon()(Code)
Returns the the icon of a compound that is disabled.
See Also:   SAbstractIconTextCompound.setDisabledIcon(SIcon)



getDisabledSelectedIcon
public SIcon getDisabledSelectedIcon()(Code)
Returns the icon of a selected compound that is disabled.
See Also:   SAbstractIconTextCompound.setDisabledSelectedIcon(SIcon)



getHorizontalTextPosition
public int getHorizontalTextPosition()(Code)



getIcon
public SIcon getIcon()(Code)
Returns the icon of the Compound.
See Also:   SAbstractIconTextCompound.setIcon(SIcon)



getIconTextGap
public int getIconTextGap()(Code)



getItemListeners
public ItemListener[] getItemListeners()(Code)
Returns an array of all the ItemListeners added to this SAbstractIconTextCompound with addItemListener(). all of the ItemListeners added or an emptyarray if no listeners have been added



getModel
public SButtonModel getModel()(Code)



getPressedIcon
public SIcon getPressedIcon()(Code)
Returns the icon that is displayed when a compound is pressed with the mouse.
See Also:   SAbstractIconTextCompound.setPressedIcon(SIcon)



getRolloverIcon
public SIcon getRolloverIcon()(Code)
Returns the icon that is displayed as rollOver effect (meaning the icon shown when the mouse is just positioned over the compound).
See Also:   SAbstractIconTextCompound.setRolloverIcon(SIcon)



getRolloverSelectedIcon
public SIcon getRolloverSelectedIcon()(Code)
Returns the the rollOver icon of a selected compound.
See Also:   SAbstractIconTextCompound.setRolloverSelectedIcon(SIcon)



getSelectedIcon
public SIcon getSelectedIcon()(Code)
Returns the icon of a selected compound.
See Also:   SAbstractIconTextCompound.setSelectedIcon(SIcon)



getSelectedObjects
public Object[] getSelectedObjects()(Code)
Returns the selected items or null if no items are selected.



getSelectionBackground
public Color getSelectionBackground()(Code)
Return the background color. the background color



getSelectionFont
public SFont getSelectionFont()(Code)
Return the font. the font



getSelectionForeground
public Color getSelectionForeground()(Code)
Return the foreground color. the foreground color



getText
public String getText()(Code)
Return the text of the button. the text



getVerticalTextPosition
public int getVerticalTextPosition()(Code)



isSelected
public boolean isSelected()(Code)



removeChangeListener
public void removeChangeListener(ChangeListener l)(Code)
Removes a ChangeListener from the button.
Parameters:
  l - the listener to be removed



removeItemListener
public void removeItemListener(ItemListener il)(Code)
Remove the given itemListener from list of item listeners.
See Also:   SAbstractIconTextCompound.addItemListener(ItemListener)



setDisabledIcon
public void setDisabledIcon(SIcon icon)(Code)
Sets the icon that is displayed when a compound is disabled.
Parameters:
  icon - to be shown for a disabled compound.



setDisabledSelectedIcon
public void setDisabledSelectedIcon(SIcon icon)(Code)
Sets the Icon that is displayed when a selected compound is disabled .
Parameters:
  icon - to be shown for a selected compound that is disabled.



setHorizontalTextPosition
public void setHorizontalTextPosition(int textPosition)(Code)



setIcon
public void setIcon(SIcon i)(Code)
Sets the icon for the compound.
Parameters:
  i - the icon.



setIconTextGap
public void setIconTextGap(int gap)(Code)



setIcons
public void setIcons(SIcon[] icons)(Code)
Sets the proper icons for buttonstatus enabled resp. disabled.



setModel
public void setModel(SButtonModel model)(Code)



setPressedIcon
public void setPressedIcon(SIcon icon)(Code)
Sets the icon that is displayed when the compound is pressed with the mouse.
Parameters:
  icon - to be shown when mouse button is pressed.



setRolloverIcon
public void setRolloverIcon(SIcon icon)(Code)
Sets the icon that is displayed as rollOver effect (meaning the icon shown when the mouse is just positioned over the compound).
Parameters:
  icon - rollOver icon for unselected compound.



setRolloverSelectedIcon
public void setRolloverSelectedIcon(SIcon icon)(Code)
Sets the icon that is displayed as rollover effect of a selected compound (meaning the icon shown when the mouse is just positioned over the selected compound).
Parameters:
  icon - rollOver icon for selected compound.



setSelected
public void setSelected(boolean selected)(Code)
Toggle the selection. If the new selection is different to the old selection an ItemEvent is raised.



setSelectedIcon
public void setSelectedIcon(SIcon icon)(Code)
Sets the icon that is displayed when a compound is selected.
Parameters:
  icon - to be shown for a selected compound.



setSelectionBackground
public void setSelectionBackground(Color color)(Code)
Set the foreground color.
Parameters:
  color - the new foreground color



setSelectionFont
public void setSelectionFont(SFont font)(Code)
Set the font.
Parameters:
  font - the new font



setSelectionForeground
public void setSelectionForeground(Color color)(Code)
Set the foreground color.
Parameters:
  color - the new foreground color



setText
public void setText(String t)(Code)
Sets the label of the button.



setVerticalTextPosition
public void setVerticalTextPosition(int textPosition)(Code)



shouldDelayEvents
final protected boolean shouldDelayEvents()(Code)



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.