@Component(tag="messagepane", widgetClass="Messagepane", content=AS_CHILD, parentTag="messagewindow", childTag=@Component.ChildTag(value="*"), description="A pane holding a single message in a message window.") public class MessagePane extends BaseUIComponent
MessageWindowBaseComponent.SubComponent| Constructor and Description |
|---|
MessagePane() |
MessagePane(String title,
String category,
int duration,
boolean actionable)
Create a message pane.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCategory()
Returns the category of the message.
|
int |
getDuration()
Returns the duration, in milliseconds, that the message will be displayed.
|
String |
getTitle()
Returns the title bar text.
|
boolean |
isActionable()
Returns true if the message is actionable.
|
void |
setActionable(boolean actionable)
Set to true to make the message actionable.
|
void |
setCategory(String category)
Sets the category of the message.
|
void |
setDuration(int duration)
Sets the duration, in milliseconds, that the message will be displayed.
|
void |
setTitle(String title)
Sets the title bar text.
|
_syncClasses, _syncStyles, addClass, addMask, addMask, addMask, addStyle, addStyles, afterRemoveChild, focus, getBalloon, getClasses, getContext, getCss, getDragid, getDropid, getFirstVisibleChild, getFirstVisibleChild, getFlex, getHeight, getHint, getKeycapture, getPopup, getStyle, getStyles, getTabindex, getWidth, hide, isDisabled, isVisible, removeClass, removeMask, removeStyle, scrollIntoView, setBalloon, setClasses, setContext, setCss, setDisabled, setDragid, setDropid, setFlex, setFocus, setHeight, setHint, setKeycapture, setPopup, setStyles, setTabindex, setVisible, setWidth, show, toggleClass_attach, _initProps, addChild, addChild, addChild, addChildren, addEventForward, addEventForward, addEventForward, addEventForward, addEventListener, addEventListener, addEventListener, addEventListener, afterAddChild, afterSetParent, areEqual, beforeAddChild, beforeRemoveChild, beforeSetParent, bringToFront, defaultify, destroy, destroyChildren, detach, finalize, findAttribute, findByName, findByName, findChildByData, findChildByLabel, fireEvent, fireEvent, getAncestor, getAncestor, getAttribute, getAttribute, getAttribute, getAttributes, getChild, getChildAt, getChildCount, getChildCount, getChildren, getChildren, getContent, getController, getControllers, getData, getData, getDefinition, getFirstChild, getId, getIndex, getLastChild, getName, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, hasAttribute, hasEventListener, hasEventListener, invoke, invoke, invokeIfAttached, isAncestor, isContainer, isContentSynced, isDead, isNamespace, notifyAncestors, notifyDescendants, nullify, onAttach, onDestroy, propertyChange, removeAttribute, removeChild, removeEventForward, removeEventForward, removeEventForward, removeEventForward, removeEventListener, removeEventListener, removeEventListener, removeEventListener, setAttribute, setContent, setContentSynced, setData, setIndex, setName, setParent, sub, swapChildren, sync, toString, trimify, validate, validate, validateChild, validateIsChild, validatePage, validateParent, wireControllerpublic MessagePane()
public MessagePane(String title, String category, int duration, boolean actionable)
title - Title bar text.category - Message category.duration - Duration, in milliseconds, that the message will display.actionable - True if the message is actionable.@Component.PropertyGetter(value="title", description="The title bar text.") public String getTitle()
@Component.PropertySetter(value="title", description="The title bar text.") public void setTitle(String title)
title - The title bar text.@Component.PropertyGetter(value="duration", description="The duration, in milliseconds, that the message will be displayed.") public int getDuration()
@Component.PropertySetter(value="duration", defaultValue="8000", description="The duration, in milliseconds, that the message will be displayed.") public void setDuration(int duration)
duration - The duration, in milliseconds, that the message will be displayed.@Component.PropertyGetter(value="category", description="The category of the message.") public String getCategory()
@Component.PropertySetter(value="category", description="The category of the message.") public void setCategory(String category)
category - The category of the message.@Component.PropertyGetter(value="actionable", description="True if the message is actionable. An actionable message has an action icon that, when clicked, triggers an action event.") public boolean isActionable()
@Component.PropertySetter(value="actionable", defaultValue="false", description="True if the message is actionable. An actionable message has an action icon that, when clicked, triggers an action event.") public void setActionable(boolean actionable)
actionable - Set to true to make the message actionable.Copyright © 2017 Regenstrief Center for Biomedical Informatics. All rights reserved.