Package com.jbstrap.ui.components.card
Class Card
- All Implemented Interfaces:
Clickable<Card>
,HandleMouseEvents<Card>
-
Field Summary
Fields inherited from class com.jbstrap.ui.Component
animation, attributes, backgroundColor, borderColor, color, defaultHotKeyHandler, handlers, hotKeys, styleClasses, textAlign, toolTip, toolTipPosition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddComponent
(Component<?> component) Adds the specified component as a subcomponent, and redraws the component immediatelyaddSubTitle
(String title) addSubTitle
(String title, Color color) createFooter
(Component<?> components) createFooter
(String footerText) createFooter
(String footerText, Color textColor) createFooter
(String footerText, Color textColor, Color backgroundColor) createFooter
(String footerText, Color textColor, Color backgroundColor, Component<?>... components) createHeader
(Component<?> components) createHeader
(String headerText) createHeader
(String headerText, Color textColor) createHeader
(String headerText, Color textColor, Color backgroundColor) createHeader
(String text, Color textColor, Color backgroundColor, Component<?>... components) boolean
Removes every subcomponent from the componentremoveComponent
(Component<?> component) Removes the specified subcomponent.setCardBackgroundImage
(Image image) setCardBottomImage
(Image image) setCardTopImage
(Image image) setFooterText
(String footerText) setFooterText
(String footerText, Color color) setHeaderText
(String headerText) setHeaderText
(String headerText, Color color) setTextAlign
(TextAlign align) setVerticalAlignCenter
(boolean centered) boolean
writeHTML
(StringWriter writer) Creates the component's HTML equivalentMethods inherited from class com.jbstrap.ui.Component
_hide, _setAttribute, addAllowedRole, addComponent, addComponents, addDeniedRole, addHandler, addStyle, addStyleClass, addStyleClasses, afterDraw, clearfix, closeTag, combinateAccess, containsStyle, containsStyleClass, draw, drawSubComponents, error, flattendComponentTree, getAccess, getAccessMode, getAllowedRoles, getAttribute, getAttributes, getBackgroundColor, getBorderColor, getClient, getComponentById, getComponents, getComponents, getComponentsByClass, getData, getDeniedRoles, getHandlers, getId, getLanguageCode, getName, getParent, getParent, getRegisteredEvents, getStyle, getStyleClasses, getTextColor, getToolTip, getToolTipPosition, getTypeName, getUI, init, insertComponentAfter, insertComponentBefore, isAccess, isDrawn, isEnabled, isEventBubbling, isVisible, onHide, onHotKeyEventHandler, onShow, openTag, redraw, removeAllowedRole, removeAllStyleClasses, removeAttribute, removeComponent, removeComponents, removeDeniedRole, removeHandler, removeStyle, removeStyle, removeStyleClass, removeStyleClasses, replaceComponent, replaceStyleClass, runAfterDraw, runJavaScript, runJavaScript, runJavaScript, runOnHide, runOnShow, say, setAttribute, setBackgroundColor, setBorder, setBorderColor, setData, setDisplayType, setEnabled, setEventBubbling, setFlex, setFloating, setHeight100, setHeight25, setHeight50, setHeight75, setHeightAuto, setLanguage, setMargin, setName, setOverflow, setPadding, setParent, setScrollable, setSelectionType, setShadow, setStyle, setTextColor, setToolTip, setToolTipPosition, setVisible, setWidth100, setWidth25, setWidth50, setWidth75, setWidthAuto, showNotification, showNotification, showProcessIndicator, toggleStyleClass
Methods inherited from class com.jbstrap.core.messagebus.MessageBus
closeMessageBus, messageBusOpened, openMessageBus, renewSubscription, sendMessageToMessageBus, subscribeMessageBus, unsubscribeAllListeners, unsubscribeMessageBus
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.jbstrap.ui.Clickable
addClickHandler, addDoubleClickHandler
Methods inherited from interface com.jbstrap.ui.HandleMouseEvents
addMouseDownHandler, addMouseEnterHandler, addMouseLeaveHandler, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, addMouseWheelHandler
-
Constructor Details
-
Card
public Card() -
Card
-
-
Method Details
-
setHeaderText
-
setHeaderText
-
getHeaderText
-
createHeader
-
createHeader
-
createHeader
-
createHeader
-
createHeader
-
getHeader
-
addComponent
Description copied from class:Component
Adds the specified component as a subcomponent, and redraws the component immediately- Overrides:
addComponent
in classComponent<Card>
- Parameters:
component
- The component to be added- Returns:
- The component
-
removeAllComponents
Description copied from class:Component
Removes every subcomponent from the component- Overrides:
removeAllComponents
in classComponent<Card>
- Returns:
- The component
-
removeComponent
Description copied from class:Component
Removes the specified subcomponent.- Overrides:
removeComponent
in classComponent<Card>
- Parameters:
component
- The component instance- Returns:
- The component
-
setCardTopImage
-
getCardTopImage
-
setCardBottomImage
-
getCardBottomImage
-
setCardBackgroundImage
-
setVerticalAlignCenter
-
isVerticalAlignCenter
public boolean isVerticalAlignCenter() -
getCardBackgroundImage
-
setTextAlign
- Overrides:
setTextAlign
in classComponent<Card>
-
getTextAlign
- Overrides:
getTextAlign
in classComponent<Card>
-
addTitle
-
addTitle
-
addSubTitle
-
addSubTitle
-
addText
-
addText
-
writeHTML
Description copied from class:Component
Creates the component's HTML equivalentThis method doesn't need to be used during application development. This method is used when developing a custom component. When creating a custom component, this method needs to be implemented. In the parameter (
StringWriter
class) the component's HTML equivalent must be specified, and the method has to return with a Boolean value. This boolean value determines if the component was drawn. If the user doesn't have access right to the component, or if the component couldn't be drawn, it should return withfalse
. Otherwise, it must return withtrue
.
-