public class MultiButtonEntityView<T extends Entity> extends MultiButton implements EntityView<T>
A view that renders an Entity
as a MultiButton.
TODO Add documentation about view properties, bindings and actions.
Modifier and Type | Field and Description |
---|---|
static ViewProperty<ActionNode.Category> |
ACTION_CATEGORY |
static Tag |
icon |
static ViewProperty<AsyncImage> |
ICON
View property to bind
MultiButton.setIcon(com.codename1.ui.Image) . |
static Tag |
line1 |
static ViewProperty<String> |
LINE1
View property to bind
MultiButton.setTextLine1(java.lang.String) |
static ViewProperty<String> |
LINE1_UIID |
static Tag |
line2 |
static ViewProperty<String> |
LINE2
View property to bind
MultiButton.setTextLine2(java.lang.String) . |
static ViewProperty<String> |
LINE2_UIID |
static Tag |
line3 |
static ViewProperty<String> |
LINE3
View property to bind
MultiButton.setTextLine3(java.lang.String) |
static ViewProperty<String> |
LINE3_UIID |
static Tag |
line4 |
static ViewProperty<String> |
LINE4
View property to bind
MultiButton.setTextLine4(java.lang.String) |
static ViewProperty<String> |
LINE4_UIID |
static ViewProperty<String> |
UIID |
BASELINE, BOTTOM, BRB_CENTER_OFFSET, BRB_CONSTANT_ASCENT, BRB_CONSTANT_DESCENT, BRB_OTHER, CENTER, CROSSHAIR_CURSOR, DEFAULT_CURSOR, DRAG_REGION_IMMEDIATELY_DRAG_X, DRAG_REGION_IMMEDIATELY_DRAG_XY, DRAG_REGION_IMMEDIATELY_DRAG_Y, DRAG_REGION_LIKELY_DRAG_X, DRAG_REGION_LIKELY_DRAG_XY, DRAG_REGION_LIKELY_DRAG_Y, DRAG_REGION_NOT_DRAGGABLE, DRAG_REGION_POSSIBLE_DRAG_X, DRAG_REGION_POSSIBLE_DRAG_XY, DRAG_REGION_POSSIBLE_DRAG_Y, E_RESIZE_CURSOR, HAND_CURSOR, LEFT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NW_RESIZE_CURSOR, RIGHT, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, TOP, W_RESIZE_CURSOR, WAIT_CURSOR
Constructor and Description |
---|
MultiButtonEntityView(T entity,
ViewNode viewNode) |
Modifier and Type | Method and Description |
---|---|
void |
bind() |
void |
commit() |
protected void |
deinitialize() |
T |
getEntity() |
ViewNode |
getViewNode() |
protected void |
initComponent() |
void |
setAction(ActionNode action) |
void |
setEntity(T entity) |
void |
unbind() |
void |
update() |
addActionListener, addLongPressListener, addPointerPressedListener, addPointerReleasedListener, getCommand, getDisabledIcon, getEmblem, getEmblemName, getEmblemPosition, getEmblemUIID, getGap, getGroup, getIcon, getIconComponent, getIconFromState, getIconName, getIconPosition, getIconStyleComponent, getIconUIID, getMaskName, getNameLine1, getNameLine2, getNameLine3, getNameLine4, getPressedIcon, getPropertyNames, getPropertyTypes, getPropertyValue, getRolloverIcon, getRolloverPressedIcon, getText, getTextLine1, getTextLine2, getTextLine3, getTextLine4, getTextPosition, getUIIDLine1, getUIIDLine2, getUIIDLine3, getUIIDLine4, isCheckBox, isHorizontalLayout, isInvertFirstTwoEntries, isLinesTogetherMode, isRadioButton, isSelected, isShouldLocalize, removeActionListener, removeLongPressListener, removePointerPressedListener, removePointerReleasedListener, setCheckBox, setCommand, setDisabledIcon, setEmblem, setEmblemName, setEmblemPosition, setEmblemUIID, setGap, setGroup, setGroup, setHorizontalLayout, setIcon, setIconName, setIconPosition, setIconUIID, setInvertFirstTwoEntries, setLinesTogetherMode, setMaskName, setNameLine1, setNameLine2, setNameLine3, setNameLine4, setPressedIcon, setPropertyValue, setRadioButton, setRolloverIcon, setRolloverPressedIcon, setSelected, setShouldLocalize, setText, setTextLine1, setTextLine2, setTextLine3, setTextLine4, setTextPosition, setUIIDLine1, setUIIDLine2, setUIIDLine3, setUIIDLine4
add, add, add, add, add, add, addAll, addComponent, addComponent, addComponent, addComponent, animateHierarchy, animateHierarchyAndWait, animateHierarchyFade, animateHierarchyFadeAndWait, animateLayout, animateLayoutAndWait, animateLayoutFade, animateLayoutFadeAndWait, animateUnlayout, animateUnlayoutAndWait, applyRTL, calcPreferredSize, cancelRepaints, clearClientProperties, constrainHeightWhenScrollable, constrainWidthWhenScrollable, contains, createAnimateHierarchy, createAnimateHierarchyFade, createAnimateLayout, createAnimateLayoutFade, createAnimateLayoutFadeAndWait, createAnimateMotion, createAnimateUnlayout, createReplaceTransition, dragInitiated, drop, encloseIn, encloseIn, findDropTargetAt, findFirstFocusable, fireClicked, flushReplace, forceRevalidate, getBottomGap, getChildrenAsList, getClosestComponentTo, getComponentAt, getComponentAt, getComponentCount, getComponentIndex, getGridPosX, getGridPosY, getLayout, getLayoutHeight, getLayoutWidth, getLeadComponent, getLeadParent, getResponderAt, getSafeAreaRoot, getScrollIncrement, getSideGap, getUIManager, initLaf, invalidate, isEnabled, isSafeArea, isSafeAreaRoot, isScrollableX, isScrollableY, isSelectableInteraction, iterator, iterator, keyPressed, keyReleased, layoutContainer, morph, morphAndWait, paint, paintComponentBackground, paintGlass, paramString, pointerPressed, refreshTheme, removeAll, removeComponent, replace, replace, replaceAndWait, replaceAndWait, replaceAndWait, revalidate, revalidateLater, revalidateWithAnimationSafety, scrollComponentToVisible, setCellRenderer, setEnabled, setLayout, setLeadComponent, setSafeArea, setSafeAreaRoot, setScrollable, setScrollableX, setScrollableY, setScrollIncrement, setShouldCalcPreferredSize, setShouldLayout, setUIManager, updateTabIndices
addDragFinishedListener, addDragOverListener, addDropListener, addFocusListener, addPointerDraggedListener, addPullToRefresh, addScrollListener, addStateChangeListener, animate, bindProperty, blocksSideSwipe, calcScrollSize, contains, containsOrOwns, createStyleAnimation, deinitializeCustomStyle, dragEnter, dragExit, dragFinished, draggingOver, drawDraggedImage, focusGained, focusLost, getAbsoluteX, getAbsoluteY, getAllStyles, getAnimationManager, getBaseline, getBaselineResizeBehavior, getBindablePropertyNames, getBindablePropertyTypes, getBorder, getBoundPropertyValue, getBounds, getBounds, getClientProperty, getCloudBoundProperty, getCloudDestinationProperty, getComponentForm, getComponentState, getCursor, getDirtyRegion, getDisabledStyle, getDraggedx, getDraggedy, getDragImage, getDragRegionStatus, getDragSpeed, getEditingDelegate, getHeight, getInlineAllStyles, getInlineDisabledStyles, getInlinePressedStyles, getInlineSelectedStyles, getInlineStylesTheme, getInlineUnselectedStyles, getInnerHeight, getInnerPreferredH, getInnerPreferredW, getInnerWidth, getInnerX, getInnerY, getLabelForComponent, getName, getNativeOverlay, getNextFocusDown, getNextFocusLeft, getNextFocusRight, getNextFocusUp, getOuterHeight, getOuterPreferredH, getOuterPreferredW, getOuterWidth, getOuterX, getOuterY, getOwner, getParent, getPreferredH, getPreferredSize, getPreferredSizeStr, getPreferredTabIndex, getPreferredW, getPressedStyle, getPropertyTypeNames, getSameHeight, getSameWidth, getScrollable, getScrollAnimationSpeed, getScrollDimension, getScrollOpacity, getScrollOpacityChangeSpeed, getScrollX, getScrollY, getSelectCommandText, getSelectedRect, getSelectedStyle, getStyle, getTabIndex, getTensileLength, getTextSelectionSupport, getTooltip, getUIID, getUnselectedStyle, getVisibleBounds, getVisibleBounds, getWidth, getX, getY, growShrink, handlesInput, hasFixedPreferredSize, hasFocus, hideNativeOverlay, initCustomStyle, installDefaultPainter, isAlwaysTensile, isBlockLead, isCellRenderer, isChildOf, isDragActivated, isDragAndDropOperation, isDraggable, isDragRegion, isDropTarget, isEditable, isEditing, isFlatten, isFocusable, isGrabsPointerEvents, isHidden, isHidden, isHideInLandscape, isHideInPortrait, isIgnorePointerEvents, isInClippingRegion, isInitialized, isOpaque, isOwnedBy, isRippleEffect, isRTL, isScrollable, isScrollVisible, isSetCursorSupported, isSmoothScrolling, isSnapToGrid, isStickyDrag, isTactileTouch, isTactileTouch, isTensileDragEnabled, isTraversable, isVisible, keyRepeated, laidOut, longKeyPress, longPointerPress, onScrollX, onScrollY, paintBackground, paintBackgrounds, paintBorder, paintBorderBackground, paintComponent, paintComponent, paintIntersectingComponentsAbove, paintLock, paintLockRelease, paintRippleOverlay, paintScrollbars, paintScrollbarX, paintScrollbarY, parsePreferredSize, pinch, pinchReleased, pointerDragged, pointerDragged, pointerHover, pointerHoverPressed, pointerHoverReleased, pointerPressed, pointerReleased, pointerReleased, putClientProperty, refreshTheme, refreshTheme, remove, removeDragFinishedListener, removeDragOverListener, removeDropListener, removeFocusListener, removePointerDraggedListener, removeScrollListener, removeStateChangeListener, repaint, repaint, requestFocus, resetFocusable, respondsToPointerEvents, scrollRectToVisible, scrollRectToVisible, setAlwaysTensile, setBlockLead, setBoundPropertyValue, setCloudBoundProperty, setCloudDestinationProperty, setComponentState, setCursor, setDirtyRegion, setDisabledStyle, setDraggable, setDropTarget, setEditingDelegate, setFlatten, setFocus, setFocusable, setGrabsPointerEvents, setHandlesInput, setHeight, setHidden, setHidden, setHideInLandscape, setHideInPortrait, setIgnorePointerEvents, setInitialized, setInlineAllStyles, setInlineDisabledStyles, setInlinePressedStyles, setInlineSelectedStyles, setInlineStylesTheme, setInlineUnselectedStyles, setIsScrollVisible, setLabelForComponent, setName, setNextFocusDown, setNextFocusLeft, setNextFocusRight, setNextFocusUp, setOpaque, setOwner, setPreferredH, setPreferredSize, setPreferredSizeStr, setPreferredTabIndex, setPreferredW, setPressedStyle, setRippleEffect, setRTL, setSameHeight, setSameSize, setSameWidth, setScrollAnimationSpeed, setScrollOpacityChangeSpeed, setScrollSize, setScrollVisible, setScrollX, setScrollY, setSelectCommandText, setSelectedStyle, setSize, setSmoothScrolling, setSnapToGrid, setTabIndex, setTactileTouch, setTensileDragEnabled, setTensileLength, setTooltip, setTraversable, setUIID, setUIID, setUnselectedStyle, setVisible, setWidth, setX, setY, shouldBlockSideSwipe, shouldRenderComponentSelection, showNativeOverlay, startEditingAsync, stopEditing, stripMarginAndPadding, styleChanged, toImage, toString, unbindProperty, updateNativeOverlay, visibleBoundsContains
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public static final Tag line1
public static final Tag line2
public static final Tag line3
public static final Tag line4
public static final Tag icon
public static final ViewProperty<String> LINE1
View property to bind MultiButton.setTextLine1(java.lang.String)
public static final ViewProperty<String> LINE2
View property to bind MultiButton.setTextLine2(java.lang.String)
.
public static final ViewProperty<String> LINE3
View property to bind MultiButton.setTextLine3(java.lang.String)
public static final ViewProperty<String> LINE4
View property to bind MultiButton.setTextLine4(java.lang.String)
public static final ViewProperty<AsyncImage> ICON
View property to bind MultiButton.setIcon(com.codename1.ui.Image)
.
public static final ViewProperty<ActionNode.Category> ACTION_CATEGORY
public static final ViewProperty<String> LINE1_UIID
public static final ViewProperty<String> LINE2_UIID
public static final ViewProperty<String> LINE3_UIID
public static final ViewProperty<String> LINE4_UIID
public static final ViewProperty<String> UIID
public void setAction(ActionNode action)
protected void initComponent()
initComponent
in class Component
protected void deinitialize()
deinitialize
in class Component
public void bind()
bind
in interface EntityView<T extends Entity>
public void unbind()
unbind
in interface EntityView<T extends Entity>
public void update()
update
in interface EntityView<T extends Entity>
public void commit()
commit
in interface EntityView<T extends Entity>
public void setEntity(T entity)
setEntity
in interface EntityView<T extends Entity>
public T getEntity()
getEntity
in interface EntityView<T extends Entity>
public ViewNode getViewNode()
getViewNode
in interface EntityView<T extends Entity>
Copyright © 2021. All Rights Reserved.