com.incrediblesoft.redjey
Class ScrollPane

java.lang.Object
  extended by com.incrediblesoft.redjey.Component
      extended by com.incrediblesoft.redjey.Container
          extended by com.incrediblesoft.redjey.ScrollPane
All Implemented Interfaces:
ActionListener

public class ScrollPane
extends Container
implements ActionListener


Field Summary
static int SCROLLBARS_ALWAYS
           
static int SCROLLBARS_AS_NEEDED
           
static int SCROLLBARS_NEVER
           
 
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
 
Constructor Summary
ScrollPane(Component view)
           
ScrollPane(Component view, int scrollbarDisplayPolicy)
           
ScrollPane(Component view, int scrollbarDisplayPolicy, java.lang.String styleClassName)
           
 
Method Summary
 void actionPerformed(ActionEvent event)
          Invoked when an action occurs.
 java.lang.String getName()
          This method is used to retrieve the appropriate style set from a hashtable of styles
 Component getView()
          Returns the view component
 void processMouseScrollEvent(MouseEvent event)
          Processes scrolling events
 void setState(int index)
          Sets component state (NORMAL, FOCUSED, DISABLED or custom one).
 void setView(Component view)
           
 
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
 

Field Detail

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
Constructor Detail

ScrollPane

public ScrollPane(Component view)

ScrollPane

public ScrollPane(Component view,
                  int scrollbarDisplayPolicy)

ScrollPane

public ScrollPane(Component view,
                  int scrollbarDisplayPolicy,
                  java.lang.String styleClassName)
Method Detail

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