public class IconBehavior extends org.apache.wicket.behavior.Behavior implements Invertible<IconBehavior>
| Constructor and Description |
|---|
IconBehavior(IconType type)
Construct.
|
IconBehavior(IconType type,
boolean invert)
Construct.
|
IconBehavior(org.apache.wicket.model.IModel<IconType> type,
boolean invert)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
void |
detach(org.apache.wicket.Component component) |
boolean |
hasIconType() |
IconBehavior |
invert()
marks the icon as inverted.
|
boolean |
isInverted() |
void |
onComponentTag(org.apache.wicket.Component component,
org.apache.wicket.markup.ComponentTag tag) |
void |
onConfigure(org.apache.wicket.Component component) |
IconBehavior |
setInverted(boolean value)
inverts the ui state of a component.
|
IconBehavior |
setType(IconType iconType)
sets a new icon type
|
IconType |
type() |
public IconBehavior(IconType type, boolean invert)
type - The type of the icon, e.g. Search, Home, User,...invert - whether to invert the icon or notpublic IconBehavior(org.apache.wicket.model.IModel<IconType> type, boolean invert)
type - The type of the icon, e.g. Search, Home, User,...invert - whether to invert the icon or notpublic IconBehavior(IconType type)
type - The type of the icon, e.g. Search, Home, User,...public void onComponentTag(org.apache.wicket.Component component,
org.apache.wicket.markup.ComponentTag tag)
onComponentTag in class org.apache.wicket.behavior.Behaviorpublic void onConfigure(org.apache.wicket.Component component)
onConfigure in class org.apache.wicket.behavior.Behaviorpublic final boolean hasIconType()
IconType is setpublic boolean isInverted()
public final IconBehavior invert()
public final IconBehavior setType(IconType iconType)
public final IconType type()
public IconBehavior setInverted(boolean value)
InvertiblesetInverted in interface Invertible<IconBehavior>value - true, if inverted version should be usedpublic void detach(org.apache.wicket.Component component)
detach in class org.apache.wicket.behavior.BehaviorCopyright © 2013 agilecoders.de. All Rights Reserved.