Because the SOFIA Swing components extend from standard Swing components, they cannot have a common ancestor. Instead they implement the SComponent interface. This class serves as a base class for all the SComponents in the absence of a real one. It contains helper functions that the various Scomponents need.
Inner Class :public class MaxLengthInput extends PlainDocument
setAllComponentsToFocusable(Container cont, boolean skipFalse) Sets all components in the container to focusable, and will skip ones that are currently set to false depending on the argument passed.
Components update the model when they lose focus. Just in case you want to update the model on a component with focus programatically like if the user presses a hot key, call accept value on a component to get it to move the value to the model.
Adds keyboard mappings to the component. Sets shift+delete, shift+insert, control+insert to cut/paste/copy and sets the tab to a traversal key for a text area.
Parameters: comp -
Invoked when an item has been selected or deselected by the user.
The code written for this method performs the operations
that need to occur when an item is selected (or deselected).
This method removes a listener from the list that will be notified if the text in the component changes.
Parameters: l - The listener to remove.
setAllComponentsEnabled
public static void setAllComponentsEnabled(Container cont, boolean enabled)(Code)
Enables or disables all components in the container
setAllComponentsToFocusable
public static void setAllComponentsToFocusable(Container cont)(Code)
Sets all components in the container to focusable, skipping ones that are currently set to false. This method is mainly used as a work around for a bug in JDK 1.4 with respect to applets. Without explicitly calling setFocusable(true) on each component, they do not respond to the tab key.
setAllComponentsToFocusable
public static void setAllComponentsToFocusable(Container cont, boolean skipFalse)(Code)
Sets all components in the container to focusable, and will skip ones that are currently set to false depending on the argument passed. This method is mainly used as a work around for a bug in JDK 1.4 with respect to applets. Without explicitly calling setFocusable(true) on each component, they do not respond to the tab key.