de.javasoft.plaf.synthetica
Class SyntheticaState

java.lang.Object
  extended by de.javasoft.plaf.synthetica.SyntheticaState

public class SyntheticaState
extends java.lang.Object

Extended state class which covers additional component states like non-editable (LOCKED). Some Synthetica painters respect extended states and offer public painting methods which can be used for your own purpose. An integer state value represents multiple combined states. The enumeration SyntheticaState.State represents all available single states.

Since:
V2.7.0
Version:
1.01, 15.10.2008

Nested Class Summary
static class SyntheticaState.State
           
 
Constructor Summary
SyntheticaState()
          SyntheticaState default constructor.
SyntheticaState(int state)
          SyntheticaState constructor.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int getState()
          Getter for the complete state.
 boolean isSet(int state)
          Returns true if the specified state is set.
 boolean isSet(SyntheticaState.State state)
          Returns true if the specified state is set.
 void resetState(SyntheticaState.State state)
          Resets a single state.
 void setState(int state)
          Setter for the complete state.
 void setState(SyntheticaState.State state)
          Setter for a single state.
 java.lang.String toString()
          Returns the complete state as string.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SyntheticaState

public SyntheticaState()
SyntheticaState default constructor.


SyntheticaState

public SyntheticaState(int state)
SyntheticaState constructor. An integer value of 0 means no state is set.

Parameters:
state - complete state used for state initialization
Method Detail

getState

public int getState()
Getter for the complete state.

Returns:
complete component state as integer.

setState

public void setState(int state)
Setter for the complete state.

Parameters:
state - complete component state

setState

public void setState(SyntheticaState.State state)
Setter for a single state.

Parameters:
state - sets/enables the specified single state

resetState

public void resetState(SyntheticaState.State state)
Resets a single state.

Parameters:
state - resets/disables the specified single state

isSet

public boolean isSet(SyntheticaState.State state)
Returns true if the specified state is set.

Parameters:
state - the state to check for
Returns:
true - state is set/enabled; false - state is not set/disabled

isSet

public boolean isSet(int state)
Returns true if the specified state is set.

Parameters:
state - the state as integer value
Returns:
true - state is set/enabled; false - state is not set/disabled

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Returns the complete state as string.

Overrides:
toString in class java.lang.Object
Returns:
state as string representation


Copyright © 2004-2011 Jyloo Software. All Rights Reserved.