org.kalmeo.kuix.widget
Class ScrollBar

java.lang.Object
  extended by org.kalmeo.kuix.widget.Widget
      extended by org.kalmeo.kuix.widget.ScrollBar

public class ScrollBar
extends Widget

This class represents a scroll bar.

For further informations, visit the Kuix widgets reference page.

Author:
bbeaulant

Nested Class Summary
 
Nested classes/interfaces inherited from class org.kalmeo.kuix.widget.Widget
Widget.BindInstruction
 
Field Summary
 
Fields inherited from class org.kalmeo.kuix.widget.Widget
bindInstructions, DEFAULT_ALIGN, DEFAULT_BACKGROUND_ALIGN, DEFAULT_BACKGROUND_REPEAT, DEFAULT_BORDER, DEFAULT_GAP, DEFAULT_MARGIN, DEFAULT_MIN_SIZE, DEFAULT_PADDING, DEFAULT_SPAN, DEFAULT_WEIGHT, next, parent, previous
 
Constructor Summary
ScrollBar()
          Construct a ScrollBar
ScrollBar(java.lang.String tag)
          Construct a ScrollBar
 
Method Summary
 Widget getBar()
           
 Widget getInternalChildInstance(java.lang.String tag)
          Returns the first internal child instance corresponding to the given tag.
 Layout getLayout()
           
 int getSelection()
          Return a fixed-point integer representing the selection
 int getValue()
          Return a fixed-point integer representing the value
 boolean isHorizontal()
           
protected  void paintChildrenImpl(Graphics g)
          Invoke the paintImpl method on widget's children.
protected  void processChangeEvent()
          Process a value change event produce by a UI action.
 boolean processPointerEvent(byte type, int x, int y)
          Process a pointer event
 boolean setAttribute(java.lang.String name, java.lang.String value)
          Set the value to the specified attribute representing by the name
 void setHorizontal(boolean horizontal)
           
 void setSelection(int selection)
          Define the ScrollBar selection.
 void setValue(int value)
          Define the ScrollBar value
 
Methods inherited from class org.kalmeo.kuix.widget.Widget
add, add, bringNear, bringToFront, catchChildrenFrom, cleanUp, cleanUpChildren, clearCachedStyle, doLayout, getAlign, getAttribute, getAuthorStyle, getAvailablePseudoClasses, getBackgroundAlign, getBackgroundColor, getBackgroundImage, getBackgroundRepeat, getBorder, getBorderAlign, getBorderColor, getBorderImage, getBorderStroke, getCachedMetrics, getChild, getColor, getDataProvider, getDefaultStylePropertyValue, getDesktop, getDisplayX, getDisplayY, getFocusManager, getGap, getGrayedColor, getHeight, getId, getInheritedTag, getInnerHeight, getInnerWidth, getInsets, getLastChild, getLayoutData, getMargin, getMinSize, getOtherFocus, getPadding, getPreferredSize, getSpan, getStyleClasses, getStylePropertyValue, getStyles, getTag, getWeight, getWidget, getWidgetAt, getWidgetAt, getWidth, getX, getY, hasBindInstruction, hasShortcutKeyCodes, hasShortcuts, invalidate, invalidate, invalidateAppearance, invalidateAppearanceRegion, invalidateStylePropertiesCache, isFocusable, isFocused, isFocusWidgetChild, isIndividualyVisible, isInvalidated, isInWidgetTree, isObjectAttribute, isPseudoClassCompatible, isShortcutKeyCodeCompatible, isVisible, markAsValidate, needToComputePreferredSize, onAdded, onChildAdded, onChildRemoved, onFocus, onLostFocus, onRemoved, paint, paintBackground, paintBorder, paintImpl, paintMosaicImage, parseAuthorStyle, processActionEvent, processDataBindEvent, processFocusEvent, processItemsModelUpdateEvent, processKeyEvent, processModelUpdateEvent, processShortcutKeyEvent, propagateFocusEvent, remove, removeAll, removeAttributeBindInstruction, requestBackwardFocus, requestFocus, requestForwardFocus, sendToBack, setAttributeBindInstruction, setAuthorStyle, setBounds, setDataProvider, setId, setObjectAttribute, setShortcutKeyCodes, setShortcuts, setStyleClass, setStyleClasses, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScrollBar

public ScrollBar()
Construct a ScrollBar


ScrollBar

public ScrollBar(java.lang.String tag)
Construct a ScrollBar

Method Detail

setAttribute

public boolean setAttribute(java.lang.String name,
                            java.lang.String value)
Description copied from class: Widget
Set the value to the specified attribute representing by the name

Overrides:
setAttribute in class Widget
Returns:
true if the attribute exists

getInternalChildInstance

public Widget getInternalChildInstance(java.lang.String tag)
Description copied from class: Widget
Returns the first internal child instance corresponding to the given tag.

Overrides:
getInternalChildInstance in class Widget
Returns:
the child instance if it exists.

getBar

public Widget getBar()
Returns:
the bar

getSelection

public int getSelection()
Return a fixed-point integer representing the selection

Returns:
the selection

setSelection

public void setSelection(int selection)
Define the ScrollBar selection.

Parameters:
selection - a fixed-point integer representing the selection

getValue

public int getValue()
Return a fixed-point integer representing the value

Returns:
the value

setValue

public void setValue(int value)
Define the ScrollBar value

Parameters:
value - a fixed-point integer representing the value

isHorizontal

public boolean isHorizontal()
Returns:
the horizontal

setHorizontal

public void setHorizontal(boolean horizontal)
Parameters:
horizontal - the horizontal to set

getLayout

public Layout getLayout()
Overrides:
getLayout in class Widget
Returns:
the layout

paintChildrenImpl

protected void paintChildrenImpl(Graphics g)
Description copied from class: Widget
Invoke the paintImpl method on widget's children.

Overrides:
paintChildrenImpl in class Widget

processChangeEvent

protected void processChangeEvent()
Process a value change event produce by a UI action.


processPointerEvent

public boolean processPointerEvent(byte type,
                                   int x,
                                   int y)
Description copied from class: Widget
Process a pointer event

Overrides:
processPointerEvent in class Widget
Returns:
true if the event is treated by the widget


Copyright © 2007-2008 Kalmeo. All Rights Reserved.