public class RuntimePropertiesFrame extends AbstractFrame
Categorized
implementations.ScreenFragment.AfterInitEvent, ScreenFragment.AttachEvent, ScreenFragment.DetachEvent, ScreenFragment.InitEvent
Frame.MessageMode, Frame.MessageType, Frame.NotificationType, Frame.Wrapper
ExpandingLayout.ExpandDirection
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.OptionsStyleProvider
Modifier and Type | Field and Description |
---|---|
protected java.lang.Boolean |
borderVisible |
protected CollectionDatasource |
categoriesDs |
protected LookupField |
categoryField |
protected BoxLayout |
categoryFieldBox |
protected java.lang.String |
cols |
static java.lang.String |
DEFAULT_FIELD_WIDTH |
protected DynamicAttributes |
dynamicAttributes |
protected DynamicAttributesGuiTools |
dynamicAttributesGuiTools |
protected DynamicAttributesTools |
dynamicAttributesTools |
protected java.lang.String |
fieldCaptionWidth |
protected java.lang.String[] |
fieldCaptionWidths |
protected java.lang.String |
fieldWidth |
static java.lang.String |
NAME |
protected RuntimePropsDatasource |
rds |
protected boolean |
requiredControlEnabled |
protected java.lang.String |
rows |
protected Security |
security |
protected UiComponents |
uiComponents |
frame, messages
NO_OPTIONS, WINDOW_CLOSE_ACTION, WINDOW_COMMIT_AND_CLOSE_ACTION, WINDOW_DISCARD_AND_CLOSE_ACTION
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE, UNITS_PERCENTAGE, UNITS_PIXELS
Constructor and Description |
---|
RuntimePropertiesFrame() |
Modifier and Type | Method and Description |
---|---|
protected void |
addFieldsToFieldGroup(FieldGroup newRuntimeFieldGroup,
java.util.List<FieldGroup.FieldConfig> fields) |
protected java.util.List<FieldGroup.FieldConfig> |
createFieldsForAttributes(FieldGroup newRuntimeFieldGroup) |
protected FieldGroup |
createRuntimeFieldGroup(Datasource ds) |
protected java.util.Collection<java.util.function.Consumer<?>> |
getValidator(MetaProperty property) |
void |
init(java.util.Map<java.lang.String,java.lang.Object> params)
Called by the framework after creation of all components and before showing the screen.
|
protected void |
initCategoryField() |
protected void |
initDatasources(java.util.Map<java.lang.String,java.lang.Object> params) |
protected void |
initFieldCaptionWidth(FieldGroup newRuntimeFieldGroup) |
boolean |
isRequiredControlEnabled() |
protected void |
loadComponent(Datasource ds) |
protected void |
loadEditable(FieldGroup fieldGroup,
FieldGroup.FieldConfig field) |
protected void |
loadRequired(FieldGroup fieldGroup,
FieldGroup.FieldConfig field) |
protected void |
loadValidators(FieldGroup fieldGroup,
FieldGroup.FieldConfig field) |
void |
setCategoryFieldEditable(boolean editable) |
void |
setCategoryFieldVisible(boolean visible) |
void |
setRequiredControlEnabled(boolean requiredControlEnabled) |
add, add, addAction, addAction, addFacet, addStyleName, dispose, expand, expand, formatMessage, getAction, getActions, getAlignment, getCaption, getCompanion, getComponent, getComponent, getComponent, getComponents, getComposition, getContext, getDescription, getDsContext, getExpandDirection, getExpandRatio, getFacet, getFacets, getFrame, getFrameOwner, getHeight, getHeightSizeUnit, getIcon, getMargin, getMessage, getMessagesPack, getOwnComponent, getOwnComponents, getOwnComponentsStream, getParent, getSpacing, getStyleName, getWidth, getWidthSizeUnit, getWindowManager, getWrappedFrame, indexOf, init, isEnabled, isEnabledRecursive, isExpanded, isResponsive, isValid, isVisible, isVisibleRecursive, remove, removeAction, removeAction, removeAll, removeAllActions, removeFacet, removeStyleName, resetExpanded, setAlignment, setCaption, setCompanion, setDescription, setDsContext, setEnabled, setExpandRatio, setFragment, setFrame, setHeight, setIcon, setIconFromSet, setId, setMargin, setMessagesPack, setParent, setResponsive, setSpacing, setStyleName, setVisible, setWidth, setWrappedFrame, showValidationErrors, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, validate, validate, validateAll, withUnwrapped, withUnwrappedComposition
addAfterInitListener, addAttachEventListener, addDetachEventListener, addInitListener, fireEvent, getBeanLocator, getEventHub, getExtensions, getFragment, getHostController, getHostScreen, getId, getScreenData, getUiEventListeners, init, setBeanLocator, setExtensions, setHostController, setScreenData, setUiEventListeners
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFacetNN
getXmlDescriptor, setXmlDescriptor
getActionNN, getSubPart
getComponentNN
add, focusFirstComponent, getComponentNN, remove
getHeightUnits, getId, getWidthUnits, isEnabledItself, isVisibleItself, requestFocus, setHeightAuto, setHeightFull, setSizeAuto, setSizeFull, setWidthAuto, setWidthFull
openEditor, openEditor, openEditor, openEditor, openEditor, openEditor, openEditor, openFrame, openFrame, openLookup, openLookup, openLookup, openLookup, openWindow, openWindow, showMessageDialog, showNotification, showNotification, showNotification, showOptionDialog, showOptionDialog, showWebPage
public static final java.lang.String NAME
public static final java.lang.String DEFAULT_FIELD_WIDTH
protected RuntimePropsDatasource rds
protected CollectionDatasource categoriesDs
protected boolean requiredControlEnabled
@Inject protected BoxLayout categoryFieldBox
@Inject protected LookupField categoryField
@Inject protected UiComponents uiComponents
@Inject protected DynamicAttributes dynamicAttributes
@Inject protected DynamicAttributesTools dynamicAttributesTools
@Inject protected DynamicAttributesGuiTools dynamicAttributesGuiTools
@Inject protected Security security
protected java.lang.String rows
protected java.lang.String cols
protected java.lang.String fieldWidth
protected java.lang.Boolean borderVisible
protected java.lang.String fieldCaptionWidth
protected java.lang.String[] fieldCaptionWidths
public void init(java.util.Map<java.lang.String,java.lang.Object> params)
AbstractFrame
init
in class AbstractFrame
params
- parameters passed from caller's code, usually from
HasWindowManager.openWindow(String, WindowManager.OpenType)
and similar methods, or set in
screens.xml
for this registered screenprotected void initDatasources(java.util.Map<java.lang.String,java.lang.Object> params)
protected void initCategoryField()
protected void loadComponent(Datasource ds)
protected FieldGroup createRuntimeFieldGroup(Datasource ds)
protected void initFieldCaptionWidth(FieldGroup newRuntimeFieldGroup)
protected java.util.List<FieldGroup.FieldConfig> createFieldsForAttributes(FieldGroup newRuntimeFieldGroup)
protected void addFieldsToFieldGroup(FieldGroup newRuntimeFieldGroup, java.util.List<FieldGroup.FieldConfig> fields)
@Nullable protected java.util.Collection<java.util.function.Consumer<?>> getValidator(MetaProperty property)
protected void loadValidators(FieldGroup fieldGroup, FieldGroup.FieldConfig field)
protected void loadRequired(FieldGroup fieldGroup, FieldGroup.FieldConfig field)
protected void loadEditable(FieldGroup fieldGroup, FieldGroup.FieldConfig field)
public void setCategoryFieldVisible(boolean visible)
public boolean isRequiredControlEnabled()
public void setRequiredControlEnabled(boolean requiredControlEnabled)
public void setCategoryFieldEditable(boolean editable)