Package | Description |
---|---|
net.sf.cuf.debug |
The debug library provides various debugging utilities for CUF.
It is still in development and subject to change. |
net.sf.cuf.model.state |
This package contains a bridge between the ValueModel domain to the State/Stateadapter domain.
|
net.sf.cuf.state |
The State/StateAdapter library eases the management and reaction of binary states.
It greatly reduces the code needed to keep the internal (logical) state of an application with its visual representation, e.g. |
net.sf.cuf.state.ui |
This package contains various State/StateAdapter implementing classes that are useful for Swing widgets.
|
Modifier and Type | Method and Description |
---|---|
State |
StateInfo.getState() |
Constructor and Description |
---|
StateInfo(String pId,
Node pStateNode,
State pState) |
StateInfo(String pId,
State pState) |
Modifier and Type | Class and Description |
---|---|
class |
CollectionFilledState
A state that monitors a value model and is enabled if the value is a collection
and the collection is neither null nor empty.
|
class |
EqualsState
A ValueState compares the values of two value models or a value model and an object
and is enabled when both values are null or the value of the second model is equal
to the value of the first model.
|
class |
MinMaxState
The MinMaxState is a state that is enabled if the value model has a string value
where the length of the string is between a min and max value or the number value of
that value model is between min and max.
|
class |
NullState
A NullState monitors the value of a ValueModel.
|
class |
RegExpState
The RegExpState is a state that is enabled if value model has a string value
that matches the given regular expression.
|
class |
ValueState
A ValueState object wraps a ValueModel as a MutableState.
|
Modifier and Type | Method and Description |
---|---|
State |
StateValue.getState()
Return the state we wrap.
|
Constructor and Description |
---|
StateValue(State pState)
We wrap a State object as a ValueModel.
|
Modifier and Type | Interface and Description |
---|---|
interface |
MutableState
The MutableState interface describes a mutable (more-or-less) binary
state.
|
interface |
StateExpression
The StateExpression interface allows to combine states to an
arbitrary complex logical state expression.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractState
This class holds common code of mutable and immutable states.
|
class |
SimpleState
This class implements a MutableState and holds the necessary
state information inside the SimpleState object.
|
class |
SimpleStateExpression
This class implements a StateExpression, see the interface for a
description of what added value SimpleStateExpression provides.
|
Modifier and Type | Method and Description |
---|---|
void |
StateExpression.and(State pState)
Add a state to our current combined with a logical and expression.
|
void |
SimpleStateExpression.and(State pState) |
void |
StateExpression.and(State pState,
boolean pInvert)
Add a state to our current combined with a logical and expression.
|
void |
SimpleStateExpression.and(State pState,
boolean pInvert) |
void |
StateExpression.andNot(State pState)
Add the negation of a state to our current combined with a
logical and expression.
|
void |
SimpleStateExpression.andNot(State pState) |
void |
StateExpression.or(State pState)
Add a state to our current combined with a logical or expression.
|
void |
SimpleStateExpression.or(State pState) |
void |
StateExpression.or(State pState,
boolean pInvert)
Add a state to our current combined with a logical or expression.
|
void |
SimpleStateExpression.or(State pState,
boolean pInvert) |
void |
StateExpression.orNot(State pState)
Add the negation of a state to our current combined with a
logical or expression.
|
void |
SimpleStateExpression.orNot(State pState) |
void |
StateAdapter.setState(State pState)
Sets (or resets if pState=null) the state this adapter acts on.
|
void |
AbstractStateAdapter.setState(State pState) |
void |
StateExpression.xor(State pState)
Add a state to our current combined with a logical xor expression.
|
void |
SimpleStateExpression.xor(State pState) |
void |
StateExpression.xor(State pState,
boolean pInvert)
Add a state to our current combined with a logical xor expression.
|
void |
SimpleStateExpression.xor(State pState,
boolean pInvert) |
void |
StateExpression.xorNot(State pState)
Add the negation of a state to our current combined with a
logical xor expression.
|
void |
SimpleStateExpression.xorNot(State pState) |
Constructor and Description |
---|
AbstractStateAdapter(State pState)
Creates a new adapter, that monitors the handed state and has an
empty string as its name.
|
AbstractStateAdapter(State pState,
String pName)
Creates a new adapter, that monitors the handed state and uses
the handed string as its name.
|
SimpleStateExpression(State pState)
Creates an expression and sets the initial state.
|
SimpleStateExpression(State pState,
boolean pInvert)
Creates an expression and sets the initial state.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractSwingState
AbstractSwingState has the common boiler plate code for the various
States in this package.
|
class |
SwingDocumentState
The SwingDocumentState class models a State with the Document of a
Swing JTextField or JTextComponent as the state source.
|
class |
SwingEnabledState
The SwingSelectedState class models a State with a Swing JComponent or
Action as the state source.
|
class |
SwingListModelFillState
The SwingListModelFillState class models a State with the ListModel
of a Swing JList as the state source.
|
class |
SwingListSelectionState
The SwingListSelectionState class models a State with the ListSelectionModel
of a Swing JTable or JList as the state source.
|
class |
SwingSelectedState
The SwingSelectedState class models a State with a Swing ButtonModel
as the state source.
|
class |
SwingTableModelFillState
The SwingTableModelFillState class models a State with the TableModel
of a Swing JTable as the state source.
|
class |
SwingTreeModelFillState
The SwingTreeModelFillState class models a State with the TreeModel of a
Jtree as the state source.
|
class |
SwingTreeSelectionState
The SwingTreeSelectionState class models a State with a TreeSelectionModel
of a JTree as the state source.
|
Constructor and Description |
---|
SwingBackgroundAdapter(State pState)
Create a new adapter with a state and a default background Color.
|
SwingBackgroundAdapter(State pState,
Color pDisabledColor)
Create a new adapter.
|
SwingBorderAdapter(State pState)
Create a new adapter with a state and a default disabled border.
|
SwingBorderAdapter(State pState,
Border pDisabledBorder)
Create a new adapter.
|
SwingEditableAdapter(State pState)
Creates a new adapter, that monitors the handed state and has an
empty string as its name.
|
SwingEnabledAdapter(State pState)
Create a new adapter.
|
SwingEnabledAdapter(State pState,
boolean pDeepEnable)
Create a new adapter.
|
SwingEnabledAdapter(State pState,
boolean pDeepEnable,
boolean pHandleOpaque)
Create a new adapter.
|
SwingGlassPaneAdapter(State pState)
Create a new adapter.
|
SwingJTableEnabledAdapter(State pState)
Create a new adapter.
|
SwingSelectedAdapter(State pState)
Create a new adapter.
|
SwingVisibleAdapter(State pState)
Create a new adapter.
|
Copyright © 2017 Jürgen Zeller (privat). All rights reserved.