List of usage examples for org.apache.wicket.model AbstractReadOnlyModel subclass-usage
From source file org.apache.syncope.client.console.wicket.markup.html.tree.DefaultMutableTreeNodeExpansionModel.java
public class DefaultMutableTreeNodeExpansionModel extends AbstractReadOnlyModel<Set<DefaultMutableTreeNode>> { private static final long serialVersionUID = -3407581132184748054L; @Override public Set<DefaultMutableTreeNode> getObject() {
From source file org.apache.syncope.console.wicket.markup.html.tree.DefaultMutableTreeNodeExpansionModel.java
public class DefaultMutableTreeNodeExpansionModel extends AbstractReadOnlyModel<Set<DefaultMutableTreeNode>> { private static final long serialVersionUID = -3407581132184748054L; @Override public Set<DefaultMutableTreeNode> getObject() {
From source file org.artifactory.common.wicket.behavior.defaultbutton.DefaultButtonStyleModel.java
/** * Provides the green or "Default" style to a button when added via a CSS class */ public class DefaultButtonStyleModel extends AbstractReadOnlyModel { private Component hostingButton;
From source file org.artifactory.webapp.actionable.ActionableItemBase.java
/** * @author Yoav Landman */ public abstract class ActionableItemBase extends AbstractReadOnlyModel implements ActionableItem { private Set<ItemAction> actions = new LinkedHashSet<>();
From source file org.artifactory.webapp.wicket.page.config.SchemaHelpModel.java
/** * This model extracts the help message from the artifactory schema using the descriptor and property. * * @author Yossi Shaul */ public class SchemaHelpModel extends AbstractReadOnlyModel {
From source file org.cast.cwm.components.models.CountModel.java
/** * A model that will return the size of some collection. */ public class CountModel extends AbstractReadOnlyModel<Integer> { private IModel<? extends Collection<?>> delegate;
From source file org.cast.cwm.components.models.SingularPluralModel.java
/**
* A model for a word or phrase that has to be singular or plural depending on some value.
* This takes a delegate model for the number, and two strings for the singular and plural versions.
*
* The number itself is not part of the result of this Model.
* If you need that, use @SingularPluralCountModel.
From source file org.cast.cwm.components.models.StringTruncatingModel.java
/**
* Model for potentially long strings that will only show the first N characters.
* Delegates to another string model for the actual content, then intelligently truncates
* to a given length, optionally adding "" or some other string to the end if it is truncated.
*
* The truncation attempts to return a string that ends at a word boundary.
From source file org.cast.cwm.components.models.StringWrappingModel.java
/**
* Simple model that delegates to another string Model and adds text before and/or after the value of that other model.
* Useful, for example, if you want a property of some object but with a bit of additional text added.
*
* Example: put an object's name in brackets:
* <code><pre>
From source file org.cdlflex.ui.fruit.model.FilterModel.java
/** * Readonly model that returns a {@code org.cdlflex.fruit.Filter} from a {@link IFilterProvider}. */ public class FilterModel extends AbstractReadOnlyModel<Filter> implements IFilterProvider, IWrapModel<Filter> { private static final long serialVersionUID = 1L;