com.incrediblesoft.redjey
Class ScrollPane
java.lang.Object
com.incrediblesoft.redjey.Component
com.incrediblesoft.redjey.Container
com.incrediblesoft.redjey.ScrollPane
- All Implemented Interfaces:
- ActionListener
public class ScrollPane
- extends Container
- implements ActionListener
Fields inherited from class com.incrediblesoft.redjey.Component |
BOTTOM_LAYOUT, DISABLED, H_EXPAND, HCENTER_LAYOUT, HIGHLIGHTED, LEFT_LAYOUT, NORMAL, PRESSED, RIGHT_LAYOUT, TOP_LAYOUT, TOTAL_STATES, V_EXPAND, VCENTER_LAYOUT |
Methods inherited from class com.incrediblesoft.redjey.Container |
add, dispatchEvent, getComponent, getComponentAt, getComponentCount, getLayout, indexOf, insertAt, pack, remove, remove, removeAll, setLayout, tick |
Methods inherited from class com.incrediblesoft.redjey.Component |
addActionListener, addMouseListener, fireActionEvent, getAbsoluteRect, getAbsoluteX, getAbsoluteY, getAlignment, getBounds, getClientSize, getContentAlignment, getCurrentStyle, getHeight, getParent, getPreferredSize, getState, getStyle, getStyleClass, getWidth, getX, getY, invalidate, invalidateTree, isFocused, isHighlightable, isVisible, keyPressed, keyReleased, paint, removeActonListener, removeMouseListener, repaint, repaint, setAlignment, setBounds, setContentAlignment, setLocation, setPreferredSize, setSize, setSize, setStyle, setStyle, setStyleClass, setTag, setVisible, setX, setY, toString, validate |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SCROLLBARS_ALWAYS
public static final int SCROLLBARS_ALWAYS
- See Also:
- Constant Field Values
SCROLLBARS_AS_NEEDED
public static final int SCROLLBARS_AS_NEEDED
- See Also:
- Constant Field Values
SCROLLBARS_NEVER
public static final int SCROLLBARS_NEVER
- See Also:
- Constant Field Values
ScrollPane
public ScrollPane(Component view)
ScrollPane
public ScrollPane(Component view,
int scrollbarDisplayPolicy)
ScrollPane
public ScrollPane(Component view,
int scrollbarDisplayPolicy,
java.lang.String styleClassName)
getName
public java.lang.String getName()
- Description copied from class:
Component
- This method is used to retrieve the appropriate style set from a hashtable of styles
- Overrides:
getName
in class Container
- Returns:
- Name of component
setState
public void setState(int index)
- Description copied from class:
Component
- Sets component state (NORMAL, FOCUSED, DISABLED or custom one).
It is also changes appearance styles.
- Overrides:
setState
in class Component
- Parameters:
index
- Component state index
getView
public Component getView()
- Returns the view component
- Returns:
setView
public void setView(Component view)
processMouseScrollEvent
public void processMouseScrollEvent(MouseEvent event)
- Description copied from class:
Component
- Processes scrolling events
- Parameters:
event
- Event
actionPerformed
public void actionPerformed(ActionEvent event)
- Description copied from interface:
ActionListener
- Invoked when an action occurs.
- Specified by:
actionPerformed
in interface ActionListener