| |
|
| com.jeta.forms.store.properties.JETAProperty com.jeta.forms.store.properties.ScrollBarsProperty
ScrollBarsProperty | public class ScrollBarsProperty extends JETAProperty (Code) | | A custom property for scrollable Swing components such as lists, tables, and
text areas. We provide a scroll bars property for these components instead of
requiring the user to create a separate JScrollPane in the designer. This
property will automatically create a JScrollPane and add the Java bean during
runtime.
author: Jeff Tassin |
Constructor Summary | |
public | ScrollBarsProperty() Creates a ScrollBarsProperty instances with the default
horizontal and vertical scroll bar policies (AS_NEEDED). | public | ScrollBarsProperty(int vertpolicy, int horzpolicy) Creates a ScrollBarsProperty instances with the specified
horizontal and vertical scroll bar policies. |
VERSION | final public static int VERSION(Code) | | version number for this class
|
serialVersionUID | final static long serialVersionUID(Code) | | |
ScrollBarsProperty | public ScrollBarsProperty()(Code) | | Creates a ScrollBarsProperty instances with the default
horizontal and vertical scroll bar policies (AS_NEEDED).
|
ScrollBarsProperty | public ScrollBarsProperty(int vertpolicy, int horzpolicy)(Code) | | Creates a ScrollBarsProperty instances with the specified
horizontal and vertical scroll bar policies.
Parameters: vertpolicy - the vertical scroll bar policy. Parameters: horzpolicy - the horizontal scroll bar policy. |
getBorderProperty | public CompoundBorderProperty getBorderProperty()(Code) | | Returns the property that defines the border to apply to the scroll pane.
the scroll pane border attributes. |
getScrollName | public String getScrollName()(Code) | | Returns the name of the JScrollPane component.
the name of the JScrollPane. |
isScrollable | public boolean isScrollable()(Code) | | Returns true if both the vertical and horizontal policies are NOT equal
to NEVER. If a property is scrollable then a JScrollPane will be created.
If this property is not scrollabe, a JScrollPane instance will not be
created.
true if both the vertical and horizontal policies are NOT equalto NEVER |
setBorderProperty | public void setBorderProperty(CompoundBorderProperty prop)(Code) | | Sets the property that defines the border to apply to the scroll pane.
the scroll pane border attributes. |
setHorizontalScrollBarPolicy | public void setHorizontalScrollBarPolicy(int policy)(Code) | | Sets the horizontal scrollbar policy. The options are:JScrollPane
HORIZONTAL_SCROLLBAR_AS_NEEDED
HORIZONTAL_SCROLLBAR_NEVER
HORIZONTAL_SCROLLBAR_ALWAYS
Parameters: policy - the horizontal scroll bar policy |
setScrollName | public void setScrollName(String scrollName)(Code) | | Sets the name for the JScrollPane component.
|
setValue | public void setValue(Object prop)(Code) | | Sets this property to that of another ScrollBarsProperty.
|
setVerticalScrollBarPolicy | public void setVerticalScrollBarPolicy(int policy)(Code) | | Sets the vertical scrollbar policy. The options are:JScrollPane
VERTICAL_SCROLLBAR_AS_NEEDED
VERTICAL_SCROLLBAR_NEVER
VERTICAL_SCROLLBAR_ALWAYS
Parameters: policy - the vertical scroll bar policy |
updateBean | public void updateBean(JETABean bean)(Code) | | JETAProperty implementation. Removes the Java bean from the form and adds
it to a JScrollPane. The JScrollPane is then added to the form in place
of the Java bean.
|
Fields inherited from com.jeta.forms.store.properties.JETAProperty | final public static int VERSION(Code)(Java Doc) final static long serialVersionUID(Code)(Java Doc)
|
|
|
|