org.jtheque.core.managers.view.able.components
Class StateBarComponent

java.lang.Object
  extended by org.jtheque.core.managers.view.able.components.StateBarComponent

public final class StateBarComponent
extends java.lang.Object

A state bar component.

Author:
Baptiste Wicht

Nested Class Summary
static class StateBarComponent.Position
          A position for state bar component.
 
Constructor Summary
StateBarComponent(javax.swing.JComponent component)
          Construct a new StateBarComponent with a default position.
StateBarComponent(javax.swing.JComponent component, StateBarComponent.Position position)
          Construct a new StateBarComponent.
 
Method Summary
 java.awt.Component getComponent()
          Return the component.
 StateBarComponent.Position getPosition()
          Return the position of the state bar component.
 boolean isCenter()
          Indicate if the statebar is positionned to the right.
 boolean isLeft()
          Indicate if the statebar is positionned to the left.
 boolean isRight()
          Indicate if the statebar is positionned to the center.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateBarComponent

public StateBarComponent(javax.swing.JComponent component,
                         StateBarComponent.Position position)
Construct a new StateBarComponent.

Parameters:
component - The component.
position - The position of the component.

StateBarComponent

public StateBarComponent(javax.swing.JComponent component)
Construct a new StateBarComponent with a default position.

Parameters:
component - The component.
Method Detail

getComponent

public java.awt.Component getComponent()
Return the component.

Returns:
The component.

getPosition

public StateBarComponent.Position getPosition()
Return the position of the state bar component.

Returns:
The position of the component.

isLeft

public boolean isLeft()
Indicate if the statebar is positionned to the left.

Returns:
true if the state bar is positionned to the left.

isCenter

public boolean isCenter()
Indicate if the statebar is positionned to the right.

Returns:
true if the state bar is positionned to the right.

isRight

public boolean isRight()
Indicate if the statebar is positionned to the center.

Returns:
true if the state bar is positionned to the center.


Copyright © 2009 JTheque. All Rights Reserved.