public class UI extends EntityType implements ActionCategories, WidgetTypes
The base class for UI descriptors. This class sits at the foundation of CodeRAD’s dynamic form generation capability.
See FormNode
for some usage examples.
BOTTOM_LEFT_MENU, BOTTOM_RIGHT_MENU, BUTTON_ACTION, LEFT_SWIPE_MENU, LIST_ADD_ACTION, LIST_REMOVE_ACTION, LIST_SELECT_ACTION, OVERFLOW_MENU, RIGHT_SWIPE_MENU, TOP_LEFT_MENU, TOP_RIGHT_MENU
CHECKBOX, CHECKBOX_LIST, COMBOBOX, HTML_COMPONENT, RADIO, RADIO_LIST, SWITCH, SWITCH_LIST, TABLE, TEXT, TEXTAREA
Constructor and Description |
---|
UI() |
addAllProperties, addProperty, Boolean, compose, contains, createEntity, createEntityForClass, date, deregister, description, Double, entity, factory, findProperty, getBoolean, getBoolean, getBoolean, getBoolean, getContentType, getDate, getDate, getDate, getDouble, getDouble, getDouble, getDouble, getEntityClass, getEntityType, getFactory, getFactory, getFloat, getFloat, getFloat, getFloat, getInt, getInt, getInt, getInt, getListEntityType, getListFactory, getListFactory, getLong, getLong, getLong, getPropertyValue, getPropertyValue, getPropertyValue, getPropertyValue, getRowEntityType, getRowFactory, getRowFactory, getText, getText, getText, getText, Integer, isDynamic, isRegisteredEntityType, iterator, list, newInstance, object, register, register, register, registerList, registerList, removeProperty, setBoolean, setBoolean, setBoolean, setDate, setDate, setDate, setDouble, setDouble, setDouble, setFloat, setFloat, setFloat, setInt, setInt, setInt, setListType, setLong, setLong, setLong, setPropertyValue, setPropertyValue, setPropertyValue, setRowType, setText, setText, setText, string, tags, widget
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public static StrongCache getCache()
public static void setDefaultListCellRenderer(EntityListCellRenderer renderer)
public static EntityListCellRenderer getDefaultListCellRenderer()
public static void setDefaultEntityViewFactory(EntityViewFactory factory)
public static ActionsNode removeAction(ActionNode removeAction)
public static ActionsNode selectAction(ActionNode selectAction)
public static ActionsNode addAction(ActionNode insertAction)
public static EntityViewFactory getDefaultEntityViewFactory()
public static ActionViewFactory getDefaultActionViewFactory()
public static void setDefaultActionViewFactory(ActionViewFactory factory)
public static EventFactory getDefaultEventFactory()
public static void setDefaultEventFactory(EventFactory factory)
public static PropertyViewFactory getDefaultPropertyViewFactory()
public static void setDefaultPropertyViewFactory(PropertyViewFactory factory)
public static TableCellRenderer getDefaultTableCellRenderer()
public static void setDefaultTableCellRenderer(TableCellRenderer renderer)
public static TableCellEditor getDefaultTableCellEditor()
public static void setDefaultTableCellEditor(TableCellEditor editor)
public static File getTempDir()
public static EntityViewFactoryNode viewFactory(EntityViewFactory factory, Attribute... atts)
public static ActionViewFactoryNode actionViewFactory(ActionViewFactory factory, Attribute... atts)
public static ActionViewFactoryNode viewFactory(ActionViewFactory factory, Attribute... atts)
public static UIID uiid(StringProvider provider)
public static UIID uiid(String uiid, StringProvider provider)
public static Badge badge(String badgeText, StringProvider provider)
public static SectionNode section(Attribute... atts)
public static Columns columns(int cols)
public static PropertyNode property(Property prop, Attribute... atts)
public static PropertySelectorAttribute property(PropertySelectorProvider value)
public static PropertySelectorAttribute property(PropertySelector value)
public static PropertyImageRendererAttribute iconRenderer(PropertyImageRenderer renderer)
public static ActionStyleAttribute actionStyle(ActionStyle style)
public static NodeDecoratorAttribute decorator(NodeDecorator decorator)
public static ButtonListPropertyView.ButtonListLayoutAttribute buttonListLayout(ButtonListPropertyView.ButtonListLayout layout)
public static ButtonListPropertyView.ButtonListLayoutAttribute buttonListY()
public static ButtonListPropertyView.ButtonListLayoutAttribute buttonListX()
public static ButtonListPropertyView.ButtonListLayoutAttribute buttonListFlow()
public static ButtonListPropertyView.ButtonListLayoutAttribute buttonListGrid()
public static TableColumns columns(FieldNode... atts)
public static TableCellRendererAttribute cellRenderer(TableCellRenderer renderer)
public static TableCellEditorAttribute cellEditor(TableCellEditor editor)
public static ListCellRendererAttribute cellRenderer(EntityListCellRenderer renderer)
public static PropertyViewFactoryNode propertyViewFactory(PropertyViewFactory factory, Attribute... atts)
public static PropertyViewFactoryNode viewFactoryFactory(PropertyViewFactory factory, Attribute... atts)
public static PropertyViewFactoryNode factory(PropertyViewFactory factory, Attribute... atts)
public static PropertyViewFactoryNode propertyView(PropertyViewFactory factory, Attribute... atts)
public static EventFactoryNode eventFactory(EventFactory factory, Attribute... atts)
public static EventFactoryNode event(EventFactory factory, Attribute... atts)
public static EventFactoryNode factory(EventFactory factory, Attribute... atts)
public static ActionNode action(Attribute... atts)
public static SelectedCondition selectedCondition(EntityTest test)
public static ActionNode.EnabledCondition enabledCondition(EntityTest test)
public static Condition condition(EntityTest test)
public static ActionNode.Selected selected(Attribute... atts)
public static ActionNode.Disabled disabled(Attribute... atts)
public static ActionNode.Pressed pressed(Attribute... atts)
public static ActionsNode actions(Attribute... atts)
public static ActionsNode actions(ActionNode.Category category, Actions actions)
public static MaterialIcon icon(char icon)
public static TextFormatterAttribute textFormat(TextFormatter fmt)
public static TextFormatterAttribute textFormat(DefaultTextFormatter.FormatCallback fmt)
public static TextFormatterAttribute textFormat(DefaultTextFormatter.FormatCallback fmt, DefaultTextFormatter.ParseCallback parse)
public static DateFormatterAttribute dateFormat(DateFormatter fmt)
public static DateFormatterAttribute shortDateFormat()
public static DateFormatterAttribute longDateFormat()
public static DateFormatterAttribute dateTimeFormat()
public static DateFormatterAttribute shortDateTimeFormat()
public static DateFormatterAttribute mediumDateTimeFormat()
public static DateFormatterAttribute timeAgoFormat()
public static NumberFormatterAttribute decimalFormat(int decimalPlaces)
public static NumberFormatterAttribute currencyFormat()
public static NumberFormatterAttribute intFormat()
public static Property.Editable editable(boolean editable)
public FormNode getRoot()
public FieldNode[] getAllFields()
public static RowTemplateNode rowTemplate(Attribute... atts)
public static IconRendererAttribute iconRenderer(EntityImageRenderer renderer)
public static <T> ViewPropertyParameterAttribute<T> param(ViewProperty<T> prop, T value)
public static <T> ViewPropertyParameterAttribute<T> param(ViewProperty<T> prop, Tag... tags)
public static TextIcon icon(String text, StringProvider provider)
public static TextIcon icon(StringProvider provider)
public static Property.Label label(String label)
public static Property.Label label(String label, StringProvider provider)
public static Property.Label label(StringProvider provider)
public static OptionsNode options(ListModel model, Attribute... atts)
public static void runOnImageProcessingThread(Runnable r)
public static Property.GetterAttribute getter(Property.Getter g)
public static Property.SetterAttribute setter(Property.Setter s)
Copyright © 2021. All Rights Reserved.