/** * A component that presents a visual header within a menu. */ @Component(tag = "menuheader", widgetClass = "Menuheader", parentTag = { "menu", "menupopup", "menuitem" }) public class Menuheader extends BaseMenuComponent { }
/** * An input box for entering integers. */ @Component(tag = "integerbox", widgetClass = "Integerbox", parentTag = "*") public class Integerbox extends BaseNumberboxComponent<Integer> { public Integerbox() { super(Integer.class); } }
/** * A component for inserting an embedded style sheet. */ @Component(tag = "style", widgetClass = "Style", content = ContentHandling.AS_ATTRIBUTE, parentTag = "*") public class Style extends BaseSourcedComponent { public Style() { super(true); } public Style(String content) { super(content, true); } }
/** * A simple container for holding text content. It is created implicitly during parsing of * components that support text content. */ @Component(tag = "#text", widgetClass = "Content", parentTag = "*") public class Content extends BaseComponent { }
/** * An input box for entering long integers. */ @Component(tag = "longbox", widgetClass = "Longbox", parentTag = "*") public class Longbox extends BaseNumberboxComponent<Long> { public Longbox() { super(Long.class); } }
/** * A component that allows embedding native HTML within a page. */ @Component(tag = "html", widgetClass = "Html", content = ContentHandling.AS_ATTRIBUTE, parentTag = "*") public class Html extends BaseSourcedComponent { public Html() { super(true); } public Html(String content) { super(content, true); } }
/** * An input box for entering big decimal values. */ @Component(tag = "decimalbox", widgetClass = "Doublebox", parentTag = "*") public class Decimalbox extends BaseNumberboxComponent<BigDecimal> { public Decimalbox() { super(BigDecimal.class); } }
/** * An input box for entering floating point values. */ @Component(tag = "doublebox", widgetClass = "Doublebox", parentTag = "*") public class Doublebox extends BaseNumberboxComponent<Double> { public Doublebox() { super(Double.class); } }
/** * A component that visually separates items within a menu. */ @Component(tag = "menuseparator", widgetClass = "Menuseparator", parentTag = { "menu", "menupopup", "menuitem" }) public class Menuseparator extends BaseUIComponent { }
/** * Component wrapping script source code for client-side invocation. */ @Component(tag = "cscript", widgetClass = "Script", content = ContentHandling.AS_ATTRIBUTE, parentTag = "*") public class ClientScript extends BaseScriptComponent { public ClientScript() { super(true); } public ClientScript(String script) { super(script, true); } }
/** * A simple label component. */ @Component(tag = "label", widgetClass = "Label", parentTag = "*") public class Label extends BaseLabeledComponent<BaseLabeledComponent.LabelPositionNone> { public Label() { this(null); } public Label(String label) { super(label); addClass("flavor:label-default"); } }
@Component(tag = "imagepickeritem", widgetModule = "cwf-picker", widgetClass = "Imagepickeritem", parentTag = "imagepicker") public static class ImagePickeritem extends BasePickerItem<String> { public ImagePickeritem() { } public ImagePickeritem(String item) { super(item); } @Override protected String _toString(String value) { return value; } @Override protected String _toValue(String text) { return text; } }
@Component(tag = "colorpickeritem", widgetModule = "cwf-picker", widgetClass = "Colorpickeritem", parentTag = "colorpicker") public static class ColorPickeritem extends BasePickerItem<Color> { public ColorPickeritem() { super(); } public ColorPickeritem(Color color) { super(color); } @Override protected String _toString(Color value) { return ColorUtil.toString(value); } @Override protected Color _toValue(String text) { return ColorUtil.toColor(text); } }
/** * A simple span component. */ @Component(tag = "span", widgetClass = "Span", content = ContentHandling.AS_CHILD, parentTag = "*", childTag = @ChildTag("*")) public class Span extends BaseUIComponent { }
/** * This is an extension of a Span component that implements its own namespace. */ @Component(tag = "namespace", widgetClass = "Span", content = ContentHandling.AS_CHILD, parentTag = "*", childTag = @ChildTag("*")) public class Namespace extends Span implements INamespace { }
/** * A simple cell component with an optional label. */ @Component(tag = "cell", widgetClass = "Cell", content = ContentHandling.AS_CHILD, parentTag = "*", childTag = @ChildTag("*")) public class Cell extends BaseLabeledComponent<BaseLabeledComponent.LabelPositionNone> { public Cell() { super(); } public Cell(String label) { super(label); } }
/** * A simple div component. */ @Component(tag = "div", widgetClass = "Div", content = ContentHandling.AS_CHILD, parentTag = "*", childTag = @ChildTag("*")) public class Div extends BaseUIComponent { }
/** * A container component with a frame and title for visual grouping of related elements. */ @Component(tag = "groupbox", widgetClass = "Groupbox", content = ContentHandling.AS_CHILD, parentTag = "*", childTag = @ChildTag("*")) public class Groupbox extends BaseUIComponent { private String title; @PropertyGetter("title") public String getTitle() { return title; } @PropertySetter("title") public void setTitle(String title) { if (!areEqual(title = nullify(title), this.title)) { sync("title", this.title = title); } } }
/** * A container component that be displayed at a selected location. */ @Component(tag = "popup", widgetClass = "Popup", content = ContentHandling.AS_CHILD, parentTag = "*", childTag = @ChildTag("*")) public class Popup extends BaseComponent implements INamespace { public void open(BaseComponent reference) { open(reference, null, null); } public void open(BaseComponent reference, String my, String at) { Map<String, Object> map = new HashMap<>(); map.put("of", reference); map.put("at", at); map.put("my", my); invoke("open", map, true); } public void close() { invoke("close", true); } }
/** * An extension of the Popup component designed for use with popup context menus. */ @Component(tag = "menupopup", widgetClass = "Menupopup", parentTag = "*", childTag = { @ChildTag("menuitem"), @ChildTag("menuheader"), @ChildTag("menuseparator") }) public class Menupopup extends Popup { }