com.guiseframework.component
Interface ActionValueControl<V>

Type Parameters:
V - The type of value the action represents.
All Superinterfaces:
ActionControl, ActionListenable, ActionModel, Component, Control, DepictedObject, Displayable, Enableable, InfoModel, InputFocusableComponent, LabelModel, Model, PresentationModel, com.globalmentor.beans.PropertyBindable, com.globalmentor.beans.PropertyConstrainable, ValueControl<V>, Valued<V>, ValuedComponent<V>, ValueModel<V>
All Known Implementing Classes:
AbstractActionValueControl, AbstractBooleanSelectActionControl, AbstractSelectActionValueControl, BooleanSelectButton, BooleanSelectLink, BooleanSelectToolButton, ImageBooleanSelectActionControl, TaskStateSelectLink, ValueSelectButton, ValueSelectLink

public interface ActionValueControl<V>
extends ActionControl, ValueControl<V>

An action control that also contains a value in its model.

Author:
Garret Wilson

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.guiseframework.component.Control
Control.Status
 
Field Summary
static java.lang.String VALUE_GLYPH_URI_PROPERTY
          The bound property for an icon associated with a value.
 
Fields inherited from interface com.guiseframework.component.ActionControl
ROLLOVER_PROPERTY
 
Fields inherited from interface com.guiseframework.component.ValueControl
CONVERTER_PROPERTY
 
Fields inherited from interface com.guiseframework.component.Control
STATUS_PROPERTY
 
Fields inherited from interface com.guiseframework.model.Enableable
ENABLED_PROPERTY
 
Fields inherited from interface com.guiseframework.model.ValueModel
VALIDATOR_PROPERTY, VALUE_PROPERTY
 
Method Summary
 java.net.URI getValueGlyphURI(V value)
          Retrieves the icon associated with a given value.
 void setValueGlyphURI(V value, java.net.URI newValueIcon)
          Sets the URI of the icon associated with a value.
 
Methods inherited from interface com.guiseframework.component.ActionControl
isRollover, setRollover
 
Methods inherited from interface com.guiseframework.model.ActionModel
getActionListeners, performAction, performAction
 
Methods inherited from interface com.guiseframework.event.ActionListenable
addActionListener, removeActionListener
 
Methods inherited from interface com.guiseframework.component.Control
getStatus, reset
 
Methods inherited from interface com.guiseframework.model.Enableable
isEnabled, setEnabled
 
Methods inherited from interface com.guiseframework.model.ValueModel
clearValue, getDefaultValue, getValidator, getValue, getValueClass, isValidValue, resetValue, setValidator, setValue, validateValue
 
Methods inherited from interface com.guiseframework.component.ValuedComponent
getValue, getValueClass, setValue
 

Field Detail

VALUE_GLYPH_URI_PROPERTY

static final java.lang.String VALUE_GLYPH_URI_PROPERTY
The bound property for an icon associated with a value.

Method Detail

getValueGlyphURI

java.net.URI getValueGlyphURI(V value)
Retrieves the icon associated with a given value.

Parameters:
value - The value for which an associated icon should be returned, or null to retrieve the icon associated with the null value.
Returns:
The value icon URI, which may be a resource URI, or null if the value has no associated icon URI.

setValueGlyphURI

void setValueGlyphURI(V value,
                      java.net.URI newValueIcon)
Sets the URI of the icon associated with a value. This method fires a property change event for the changed icon if its value changes.

Parameters:
value - The value with which the icon should be associated, or null if the icon should be associated with the null value.
newValueIcon - The new URI of the value icon, which may be a resource URI.
See Also:
VALUE_GLYPH_URI_PROPERTY


Copyright © 2005-2010 GlobalMentor, Inc. All Rights Reserved.