|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wings.SComponent
public abstract class SComponent
Object having a graphical representation that can be displayed on the screen and that can interact with the user.
| Field Summary | |
|---|---|
static int |
DONE_RENDERING
Internal constants for fireRenderEvent(int) |
protected Map<Selector,Style> |
dynamicStyles
Map of Selector to CSS Styles currently assigned to this component. |
protected boolean |
enabled
Enabled / disabled. |
protected PropertyChangeSupport |
propertyChangeSupport
PropertyChangeSupport |
static Selector |
SELECTOR_ALL
Global CSS selector |
static int |
START_RENDERING
Internal constants for fireRenderEvent(int) |
protected boolean |
visible
Visibility of the component. |
static int |
WHEN_FOCUSED_OR_ANCESTOR_OF_FOCUSED_COMPONENT
Constants for conditions on which actions are triggered. |
static int |
WHEN_IN_FOCUSED_FRAME
Constants for conditions on which actions are triggered. |
| Constructor Summary | |
|---|---|
SComponent()
Default empty constructor. |
|
| Method Summary | ||
|---|---|---|
void |
addComponentListener(SComponentListener l)
Adds the specified component listener to receive component events from this component. |
|
void |
addDynamicStyle(Style style)
Register a new CSS style on this component for a specfic CSS selector. |
|
protected
|
addEventListener(Class<T> type,
T listener)
Adds an event listener for the given event class |
|
void |
addNotify()
Method called to notify this SComponent that it has a new parent component. |
|
void |
addParentFrameListener(SParentFrameListener l)
Registers a "parent frame listener" to receive events from this component when the parent frame chanegs i.e. |
|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list. |
|
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Add a PropertyChangeListener for a specific property. |
|
void |
addRenderListener(SRenderListener renderListener)
Adds a listenere to this component which wil get notified when the rendering of this components starts. |
|
void |
addScriptListener(ScriptListener listener)
Adds the specified component listener to receive component events from this component. |
|
void |
addStyle(String additionalCssClassName)
Append a style class name to the style string. |
|
Object |
clone()
Clone this component. |
|
protected void |
fireComponentChangeEvent(SComponentEvent aEvent)
Reports a component change. |
|
void |
fireFinalEvents()
Internal event trigger used by CGs. |
|
protected void |
fireKeyEvents()
Internal method to trigger firing of key events. |
|
void |
fireRenderEvent(int type)
Internal method called by the CGs to indicate different states of the rendering process. |
|
ActionMap |
getActionMap()
Action map for key binding feature |
|
Color |
getBackground()
Returns the current background color of this component. |
|
SBorder |
getBorder()
Returns the border of this component or null if no border has been set. |
|
ComponentCG |
getCG()
Return the look and feel delegate. |
|
Object |
getClientProperty(Object key)
Returns the value of the property with the specified key. |
|
SPopupMenu |
getComponentPopupMenu()
|
|
Style |
getDynamicStyle(Selector selector)
Returns the style defined for the passed CSS selector. |
|
Collection |
getDynamicStyles()
Returns the collection of currently defined CSS styles on this component. |
|
int |
getFocusTraversalIndex()
returns the focus traversal index. |
|
SFont |
getFont()
Return the font used inside this component. |
|
Color |
getForeground()
Return the components foreground color. |
|
int |
getHorizontalAlignment()
Return the value of the horizontal alignment property. |
|
InputMap |
getInputMap()
|
|
InputMap |
getInputMap(int condition)
|
|
protected int |
getListenerCount(Class type)
Returns the number of listeners of the specified type for this component. |
|
protected Object[] |
getListenerList()
Returns all the listeners of this component. |
|
EventListener[] |
getListeners(Class<? extends EventListener> type)
Creates an typed array of all listeners of the specified type |
|
String |
getLowLevelEventId()
Default implementation of the method in LowLevelEventListener. |
|
String |
getName()
Gets the name property of a component. |
|
SContainer |
getParent()
Return the parent container. |
|
SFrame |
getParentFrame()
Return the parent frame. |
|
SDimension |
getPreferredSize()
Get the preferred size of this component. |
|
RequestURL |
getRequestURL()
The URL under which this component is accessible for the browser. |
|
boolean |
getResidesInForm()
Return true, if this component is contained in a form. |
|
List<ScriptListener> |
getScriptListenerList()
Returns the script listeners of this component. |
|
ScriptListener[] |
getScriptListeners()
returns the script listeners of this component |
|
Session |
getSession()
Return the session this component belongs to. |
|
boolean |
getShowAsFormComponent()
Test, what display method is set. |
|
String |
getStyle()
|
|
String |
getToolTipText()
Return the tooltip text. |
|
int |
getVerticalAlignment()
Return the value of the vertical alignment property. |
|
void |
invite(ComponentVisitor visitor)
Invite a ComponentVisitor. |
|
protected static boolean |
isDifferent(Object oldObject,
Object newObject)
use this method for changing a variable. |
|
boolean |
isEnabled()
Return true if this component is enabled. |
|
boolean |
isFocusOwner()
Returns true if this SComponent is owning the edit focus. |
|
boolean |
isRecursivelyVisible()
Return the visibility. |
|
boolean |
isReloadForced()
|
|
protected boolean |
isUpdatePossible()
|
|
boolean |
isVisible()
Return the local visibility. |
|
protected String |
paramString()
Generates a string describing this SComponent. |
|
protected void |
processComponentEvent(SComponentListener listener,
SComponentEvent e)
Processes component events occurring on this component by dispatching them to any registered SComponentListener objects. |
|
protected boolean |
processKeyEvents(String[] values)
|
|
protected void |
processLowLevelEvent(String name,
String[] values)
|
|
void |
putClientProperty(Object key,
Object value)
Add an arbitrary key/value "client property" to this component. |
|
void |
reload()
Marks this component as subject to reload. |
|
protected void |
reloadIfChange(boolean oldVal,
boolean newVal)
Mark this component as subject to reload if the property, that is given in its old and new fashion, changed. |
|
protected void |
reloadIfChange(byte oldVal,
byte newVal)
Mark this component as subject to reload if the property, that is given in its old and new fashion, changed. |
|
protected void |
reloadIfChange(char oldVal,
char newVal)
Mark this component as subject to reload if the property, that is given in its old and new fashion, changed. |
|
protected void |
reloadIfChange(double oldVal,
double newVal)
Mark this component as subject to reload if the property, that is given in its old and new fashion, changed. |
|
protected void |
reloadIfChange(float oldVal,
float newVal)
Mark this component as subject to reload if the property, that is given in its old and new fashion, changed. |
|
protected void |
reloadIfChange(int oldVal,
int newVal)
Mark this component as subject to reload if the property, that is given in its old and new fashion, changed. |
|
protected void |
reloadIfChange(long oldVal,
long newVal)
Mark this component as subject to reload if the property, that is given in its old and new fashion, changed. |
|
protected void |
reloadIfChange(Object oldVal,
Object newVal)
Mark this component as subject to reload if the property, that is given in its old and new fashion, changed. |
|
protected void |
reloadIfChange(short oldVal,
short newVal)
Mark this component as subject to reload if the property, that is given in its old and new fashion, changed. |
|
void |
removeComponentListener(SComponentListener l)
Removes the specified component listener so that it no longer receives component events from this component. |
|
void |
removeDynamicStyle(Selector selector)
Remove all CSS style definitions defined for the passed CSS selector. |
|
protected
|
removeEventListener(Class<T> type,
T listener)
Removed named event listener. |
|
void |
removeNotify()
Method called to notify this SComponent that it has no longer a parent component. |
|
void |
removeParentFrameListener(SParentFrameListener l)
Removes the specified parent frame listener so that it no longer receives events from this component. |
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove a PropertyChangeListener from the listener list. |
|
void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Remove a PropertyChangeListener for a specific property. |
|
void |
removeRenderListener(SRenderListener renderListener)
Removes the named render listener. |
|
void |
removeScriptListener(ScriptListener listener)
Removes the specified component listener so that it no longer receives component events from this component. |
|
void |
removeStyle(String cssStyleClassName)
Remove a style class definiton from this component. |
|
void |
requestFocus()
Requests the edit focus for this component for the following renderings by calling SFrame.setFocus(SComponent). |
|
void |
scrollRectToVisible(Rectangle aRect)
Forwards the scrollRectToVisible() message to the SComponent's parent. |
|
void |
setActionMap(ActionMap actionMap)
Binds action names to Actions. |
|
void |
setAttribute(CSSProperty property,
String propertyValue)
Assign or overwrite a CSS property/value pair on this component. |
|
void |
setAttribute(Selector selector,
CSSProperty property,
Color color)
Convenience variant of setAttribute(org.wings.style.Selector, org.wings.style.CSSProperty, String). |
|
void |
setAttribute(Selector selector,
CSSProperty property,
SIcon icon)
Convenience variant of setAttribute(org.wings.style.Selector, org.wings.style.CSSProperty, String). |
|
void |
setAttribute(Selector selector,
CSSProperty property,
String propertyValue)
Assign or overwrite a CSS property/value pair at this component. |
|
void |
setAttribute(String cssPropertyName,
String value)
Defines a free text css property / value pair to this component. |
|
void |
setAttributes(Selector selector,
CSSAttributeSet attributes)
|
|
void |
setBackground(Color color)
Set the components background color. |
|
void |
setBorder(SBorder border)
Sets the border for this component. |
|
void |
setCG(ComponentCG newCG)
Set the look and feel delegate for this component. |
|
void |
setComponentPopupMenu(SPopupMenu popupMenu)
|
|
void |
setDynamicStyles(Collection dynamicStyles)
Adds the passed collection of Style definitions. |
|
void |
setEnabled(boolean enabled)
Set wether this component should be enabled. |
|
void |
setFocusTraversalIndex(int index)
The index in which the focus is traversed using Tab. |
|
void |
setFont(SFont font)
Set the font. |
|
void |
setForeground(Color color)
Set the foreground color. |
|
void |
setHorizontalAlignment(int alignment)
Set the horizontal alignment. |
|
void |
setInputMap(InputMap inputMap)
Map for key binding feature. |
|
void |
setInputMap(int condition,
InputMap inputMap)
Sets The current input map. |
|
void |
setName(String uniqueName)
Sets the name property of a component which must be unique! Assigning the same name multiple times will cause strange results! |
|
void |
setNameRaw(String uncheckedName)
Direct setter for name. |
|
void |
setParent(SContainer parent)
Sets the parent container. |
|
protected void |
setParentFrame(SFrame parentFrame)
Sets the parent frame. |
|
void |
setPreferredSize(SDimension preferredSize)
Set the preferred size of the receiving component in pixel. |
|
void |
setReloadForced(boolean forced)
|
|
void |
setShowAsFormComponent(boolean showAsFormComponent)
Set display mode (href or form-component). |
|
void |
setStyle(String cssClassName)
Set an CSS class name provided by the laf-provided Cascading Style Sheet (CSS), which should be applied to this component. |
|
void |
setToolTipText(String t)
Set the tooltip text. |
|
void |
setVerticalAlignment(int alignment)
Set the vertical alignment. |
|
void |
setVisible(boolean visible)
Set the visibility. |
|
String |
toString()
A string representation of this component. |
|
void |
update(Update update)
Hands the given update to the Reload Manager. |
|
void |
updateCG()
Notification from the CGFactory that the L&F has changed. |
|
void |
write(Device s)
Mark this component as subject to reload if the property, that is given in its old and new fashion, changed. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Map<Selector,Style> dynamicStyles
Selector to CSS Styles currently assigned to this component.
protected boolean visible
protected boolean enabled
public static final int START_RENDERING
fireRenderEvent(int)
public static final int DONE_RENDERING
fireRenderEvent(int)
public static final int WHEN_FOCUSED_OR_ANCESTOR_OF_FOCUSED_COMPONENT
setInputMap(int, javax.swing.InputMap),
Constant Field Valuespublic static final int WHEN_IN_FOCUSED_FRAME
setInputMap(int, javax.swing.InputMap),
Constant Field Valuespublic static final Selector SELECTOR_ALL
protected final PropertyChangeSupport propertyChangeSupport
| Constructor Detail |
|---|
public SComponent()
| Method Detail |
|---|
public SBorder getBorder()
setBorder(SBorder)public void setBorder(SBorder border)
border - the border to be set for the componentpublic final SContainer getParent()
public void setParent(SContainer parent)
parent - the containerprotected void setParentFrame(SFrame parentFrame)
parentFrame - the framepublic void setComponentPopupMenu(SPopupMenu popupMenu)
public SPopupMenu getComponentPopupMenu()
public RequestURL getRequestURL()
ReloadResource
externalizer.
public void setPreferredSize(SDimension preferredSize)
getPreferredSize()public SDimension getPreferredSize()
setPreferredSize(org.wings.SDimension)public final void addComponentListener(SComponentListener l)
l - the component listener.SComponentEvent,
SComponentListener,
removeComponentListener(org.wings.event.SComponentListener)public final void removeComponentListener(SComponentListener l)
l - the component listener.SComponentEvent,
SComponentListener,
addComponentListener(org.wings.event.SComponentListener)public final void addParentFrameListener(SParentFrameListener l)
setParentFrame(SFrame).
If l is null, no exception is thrown and no action is performed.
l - the parent frame listener. May be null.SParentFrameEvent,
SParentFrameListener,
removeParentFrameListener(org.wings.event.SParentFrameListener),
removeNotify(),
addNotify()public final void removeParentFrameListener(SParentFrameListener l)
l - the parent frame listener.SParentFrameEvent,
SParentFrameListener,
addParentFrameListener(org.wings.event.SParentFrameListener),
removeNotify(),
addNotify()protected void fireComponentChangeEvent(SComponentEvent aEvent)
aEvent - report this event to all listenersSComponentListener
protected void processComponentEvent(SComponentListener listener,
SComponentEvent e)
SComponentListener objects.
This method is not called unless component events are
enabled for this component. Component events are enabled
when one of the following occurs:
SComponentListener object is registered
via addComponentListener.
e - the component event.SComponentEvent,
SComponentListener,
addComponentListener(org.wings.event.SComponentListener)public final void addScriptListener(ScriptListener listener)
listener - the component listener.SComponentEvent,
SComponentListener,
removeComponentListener(org.wings.event.SComponentListener)public final void removeScriptListener(ScriptListener listener)
listener - the component listener.SComponentEvent,
SComponentListener,
addComponentListener(org.wings.event.SComponentListener)public ScriptListener[] getScriptListeners()
public List<ScriptListener> getScriptListenerList()
ScriptListeners in a List.public void setName(String uniqueName)
Valid names must begin with a letter ([A-Za-z]), underscores ("_") or dollars ("$") and may be followed by any number of letters, digits ([0-9]), underscores ("_") and dollars ("$")
If no name is set, it is generated when necessary.
Explanation: This property is an identifier which is used inside the generated HTML as an element identifier (id="") and sometimes as a javascript function name.
uniqueName - A unique name to set. Only valid identifier as described are allowed!Characterpublic void setNameRaw(String uncheckedName)
uncheckedName - String to use as componentn name/identifier.public final String getName()
setName(String)
public final Session getSession()
public void setStyle(String cssClassName)
Note: Probably the addStyle(String) method is more what you want.
By default this is set to the wingS component class name (i.e. "SLabel").
The PLAFs render the value of this String to an class="cssClassName" attribute
inside the generated HTML code of this component.
The default wingS plaf initializes this by default to the wingS component class name
(i.e. SButton for button instances).
Please be aware if you replace this
default value, the default wingS style will no longer take effect, as they operate on these
default styles. To avoid this you should append your CSS styles via spaces i.e.
c.setStyle(c.getStyle + "myStyle");
cssClassName - The new CSS name value for this componentaddStyle(String),
removeStyle(String)public void addStyle(String additionalCssClassName)
additionalCssClassName - The style class to remove (if existing).removeStyle(String)public void removeStyle(String cssStyleClassName)
cssStyleClassName - The style class to remove (if existing).public String getStyle()
setStyle(String)public void addDynamicStyle(Style style)
Typically you will want to use the method setAttribute(org.wings.style.CSSProperty, String)
to specify a single CSS property/value pair on this component.
style - A Style instance.public void removeDynamicStyle(Selector selector)
selector - The selector. The default selector for most CSS attributes is SELECTOR_ALL.public Style getDynamicStyle(Selector selector)
selector - The CSS selector the style to retrieve. See Style.getSelector().
The default selector for most CSS styles is SELECTOR_ALL.
nullpublic void setDynamicStyles(Collection dynamicStyles)
Style definitions. Existing Styles for the same CSS selectors
(see Style.getSelector()) are overwritten.
dynamicStyles - A collection collection of Style definitions.public Collection getDynamicStyles()
Style instances.
public void setAttribute(String cssPropertyName,
String value)
public void setAttribute(CSSProperty property,
String propertyValue)
new CSSProperty(this)).
The CSS property will appear as an inline style in the generated HTML code.
property - The CSS property (i.e. CSSProperty.BACKGROUND).propertyValue - A valid string value for this CSS property (i.e. red or #fff in our example).
public void setAttribute(Selector selector,
CSSProperty property,
String propertyValue)
Selector. This are selector affecting only a part of a component
and not the component at all..
The CSS property will appear as an inline style in the generated HTML code.
selector - A valid CSS selector. Typically values are i.e. the SELECTOR_ALL
or other SELECTOR_xxx value instances declared in the component.
(look ie. at STabbedPane.SELECTOR_CONTENT) or manually constructed instances of
Selector. In most case setAttribute(org.wings.style.CSSProperty, String) will be your
choice.property - The css property you want to define a value forpropertyValue - A valid string value for this property.
public void setAttribute(Selector selector,
CSSProperty property,
SIcon icon)
setAttribute(org.wings.style.Selector, org.wings.style.CSSProperty, String).
Converts the passed icon into a URL and applies the according CSS style.
selector - A valid CSS selector. Typically values are i.e. the SELECTOR_ALL
or other SELECTOR_xxx value instances declared in the component.
(look ie. at STabbedPane.SELECTOR_CONTENT) or manually constructed instances of
Selector. In most case setAttribute(org.wings.style.CSSProperty, String) will be your
choice.property - The css property you want to define a value for (in this case
mostly something like CSSProperty.BACKGROUND_IMAGE.icon - The icon you want to assign.
public void setAttribute(Selector selector,
CSSProperty property,
Color color)
setAttribute(org.wings.style.Selector, org.wings.style.CSSProperty, String).
Converts the passed color into according color string.
selector - A valid CSS selector. Typically values are i.e. the SELECTOR_ALL
or other SELECTOR_xxx value instances declared in the component.
(look ie. at STabbedPane.SELECTOR_CONTENT) or manually constructed instances of
Selector. In most case setAttribute(org.wings.style.CSSProperty, String) will be your
choice.property - The css property you want to define a value for (in this case
mostly something like CSSProperty.BACKGROUND_IMAGE.color - The color value you want to assign.
public void setAttributes(Selector selector,
CSSAttributeSet attributes)
public Color getBackground()
nullpublic void setBackground(Color color)
color - the new background color or nullpublic Color getForeground()
nullpublic void setForeground(Color color)
color - the new foreground color or nullpublic void setFont(SFont font)
font - the new fontpublic SFont getFont()
nullpublic void setVisible(boolean visible)
visible - wether this component will show or notpublic boolean isVisible()
true this ccmponent
should be visible if all parent components are visible, too.
true If the component and it's children should show, false otherwiseisRecursivelyVisible()public boolean isRecursivelyVisible()
false.
true if this component and all it's ancestors are visible, false otherwise.public void setEnabled(boolean enabled)
enabled - true if the component is enabled, false otherwisepublic boolean isEnabled()
public void reload()
public void update(Update update)
update - the update for this componentprotected boolean isUpdatePossible()
public boolean isReloadForced()
public void setReloadForced(boolean forced)
protected final void reloadIfChange(Object oldVal,
Object newVal)
oldVal - the old value of some propertynewVal - the new value of some property
protected final void reloadIfChange(int oldVal,
int newVal)
oldVal - the old value of some propertynewVal - the new value of some property
protected final void reloadIfChange(boolean oldVal,
boolean newVal)
oldVal - the old value of some propertynewVal - the new value of some property
protected final void reloadIfChange(byte oldVal,
byte newVal)
oldVal - the old value of some propertynewVal - the new value of some property
protected final void reloadIfChange(short oldVal,
short newVal)
oldVal - the old value of some propertynewVal - the new value of some property
protected final void reloadIfChange(long oldVal,
long newVal)
oldVal - the old value of some propertynewVal - the new value of some property
protected final void reloadIfChange(float oldVal,
float newVal)
oldVal - the old value of some propertynewVal - the new value of some property
protected final void reloadIfChange(double oldVal,
double newVal)
oldVal - the old value of some propertynewVal - the new value of some property
protected final void reloadIfChange(char oldVal,
char newVal)
oldVal - the old value of some propertynewVal - the new value of some property
public void write(Device s)
throws IOException
write in interface RenderableIOExceptionpublic String toString()
paramString() methods
toString in class Objectprotected String paramString()
SComponent.
This method is mainly for debugging purposes.
public String getLowLevelEventId()
LowLevelEventListener.
public SFrame getParentFrame()
NOTE: You will receive null if you call this i.e. during
component creation time, as the parent frame is set when you add it to a visible SContainer.
Use addParentFrameListener(org.wings.event.SParentFrameListener) in this case.
addParentFrameListener(org.wings.event.SParentFrameListener)public boolean getResidesInForm()
public void setToolTipText(String t)
t - the new tooltip textpublic String getToolTipText()
public void setFocusTraversalIndex(int index)
index - the focus traversal index. Pressing the focus traversal
key (usually TAB) in the browser jumps to the next index.
Must not be zero.public int getFocusTraversalIndex()
setFocusTraversalIndex(int)public Object clone()
clone in class Objectpublic int getHorizontalAlignment()
SConstantspublic void setHorizontalAlignment(int alignment)
alignment - new value for the horizontal alignmentSConstantspublic void setVerticalAlignment(int alignment)
alignment - new value for the vertical alignmentSConstantspublic int getVerticalAlignment()
SConstantspublic final Object getClientProperty(Object key)
putClientProperty will return
a non-null value.
putClientProperty(java.lang.Object, java.lang.Object)
public final void putClientProperty(Object key,
Object value)
get/putClientProperty methods provide access to
a small per-instance hashtable. Callers can use get/putClientProperty
to annotate components that were created by another module, e.g. a
layout manager might store per child constraints this way. For example:
componentA.putClientProperty("to the left of", componentB);
If value is null this method will remove the property.
Changes to client properties are reported with PropertyChange
events. The name of the property (for the sake of PropertyChange
events) is key.toString().
The clientProperty dictionary is not intended to support large
scale extensions to SComponent nor should be it considered an
alternative to subclassing when designing a new component.
- See Also:
getClientProperty(java.lang.Object)
public void setCG(ComponentCG newCG)
public void setCG(TextFieldCG newCG) {
super.setCG(newCG);
}
updateCG(),
CGManager.getLookAndFeel(),
CGManager.getCG(org.wings.SComponent)public ComponentCG getCG()
public void updateCG()
updateCG()
public void invite(ComponentVisitor visitor)
throws Exception
visitor - the visitor to be invited
Exception
protected static boolean isDifferent(Object oldObject,
Object newObject)
protected final <T extends EventListener> void addEventListener(Class<T> type,
T listener)
type - The class/type of events to listen to.listener - The listener itself.
protected final <T extends EventListener> void removeEventListener(Class<T> type,
T listener)
type - The class/type of events to listen to.listener - The listener itself.protected final int getListenerCount(Class type)
type - The type of listeners
EventListenerListprotected final Object[] getListenerList()
EventListenerListpublic final EventListener[] getListeners(Class<? extends EventListener> type)
type - All listeners of this type are added to the result array
EventListenerListpublic final void addRenderListener(SRenderListener renderListener)
renderListener - SRenderListenerpublic final void removeRenderListener(SRenderListener renderListener)
renderListener - Render listener to removeaddRenderListener(org.wings.event.SRenderListener),
SRenderListenerpublic final void fireRenderEvent(int type)
type - Either DONE_RENDERING or START_RENDERING.public void scrollRectToVisible(Rectangle aRect)
aRect - the visible RectangleSScrollPanepublic void requestFocus()
SFrame.setFocus(SComponent).
public boolean isFocusOwner()
true if this SComponent is owning the edit focus.
true if this SComponent is owning the edit focus otherwise falserequestFocus()public void setShowAsFormComponent(boolean showAsFormComponent)
SForm the default
is displaying it as html form button.
Setting showAsFormComponent to false will
force displaying as href even if button is inside
a form.
showAsFormComponent - if true, display as link, if false as html form component.public boolean getShowAsFormComponent()
setShowAsFormComponent(boolean)public void setActionMap(ActionMap actionMap)
Actions. Use for key binding feature.
actionMap - The new action map.setInputMap(javax.swing.InputMap),
ActionMap,
InputMappublic ActionMap getActionMap()
setActionMap(javax.swing.ActionMap)public void setInputMap(InputMap inputMap)
inputMap - The current input map.InputMap,
ActionMap,
setActionMap(javax.swing.ActionMap),
JComponent.setInputMap(int, javax.swing.InputMap)
public void setInputMap(int condition,
InputMap inputMap)
inputMap - The new input mapcondition - Either WHEN_FOCUSED_OR_ANCESTOR_OF_FOCUSED_COMPONENT or WHEN_IN_FOCUSED_FRAMEJComponent.setInputMap(int, javax.swing.InputMap)public InputMap getInputMap()
WHEN_FOCUSED_OR_ANCESTOR_OF_FOCUSED_COMPONENTsetInputMap(javax.swing.InputMap)public InputMap getInputMap(int condition)
condition - Either WHEN_FOCUSED_OR_ANCESTOR_OF_FOCUSED_COMPONENT or WHEN_IN_FOCUSED_FRAME
setInputMap(int, javax.swing.InputMap)
protected void processLowLevelEvent(String name,
String[] values)
protected boolean processKeyEvents(String[] values)
public void fireFinalEvents()
protected void fireKeyEvents()
public void removeNotify()
SComponent that it has no longer a parent component.
This Method is called internal and should not be called directly, but can be overerloaded
to react on this event.
public void addNotify()
SComponent that it has a new parent component.
This Method is called internal and should not be called directly, but can be overerloaded
to react on this event.
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public void addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
public void removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||