Class CardAccordion
- Since:
- 4.0
- Author:
- JBStrap
-
Field Summary
Fields inherited from class com.jbstrap.ui.Component
animation, attributes, backgroundColor, borderColor, color, defaultHotKeyHandler, handlers, hotKeys, styleClasses, textAlign, toolTip, toolTipPosition
-
Constructor Summary
ConstructorDescriptionCreates an empty CardAccordion.CardAccordion
(Card... cards) Creates a new CardAccordion component and places the specified cards on the component.CardAccordion
(String id) Creates an empty CardAccordion using the specified unique ID.CardAccordion
(String id, Card... cards) Creates a new CardAccordion component with the specified unique ID and places the specified cards on the component. -
Method Summary
Modifier and TypeMethodDescriptionaddComponent
(Component<?> component) Places a new card on the component.void
The operations to be executed after the drawing of the componentboolean
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, 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, getTextAlign, getTextColor, getToolTip, getToolTipPosition, getTypeName, getUI, init, insertComponentAfter, insertComponentBefore, isAccess, isDrawn, isEnabled, isEventBubbling, isVisible, onHide, onHotKeyEventHandler, onShow, openTag, redraw, removeAllComponents, removeAllowedRole, removeAllStyleClasses, removeAttribute, removeComponent, 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, setTextAlign, 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
-
Constructor Details
-
CardAccordion
public CardAccordion()Creates an empty CardAccordion. -
CardAccordion
Creates an empty CardAccordion using the specified unique ID.- Parameters:
id
- Unique component ID
-
CardAccordion
Creates a new CardAccordion component and places the specified cards on the component.- Parameters:
cards
- Card instances to be placed on the component Ifnull
is specified, an empty component is created. You can add cards to this empty component later.
-
CardAccordion
Creates a new CardAccordion component with the specified unique ID and places the specified cards on the component.- Parameters:
id
- Unique component IDcards
- Card instances to be placed on the component Ifnull
is specified, an empty component is created. You can add cards to this empty component later.
-
-
Method Details
-
addComponent
Places a new card on the component.- Overrides:
addComponent
in classComponent<CardAccordion>
- Parameters:
component
- The component to be added- Returns:
- The component
- Throws:
IllegalArgumentException
- Thrown if the specified component does not extend the Card class
-
afterDraw
public void afterDraw()Description copied from class:Component
The operations to be executed after the drawing of the componentBy default, this is an empty method. It has to be overwritten on a component or page if additional operations have to be executed after the drawing process. One such operation is data retrieval, which shouldn't run in constructors so that the user could see results of an operation or navigation process.
- Overrides:
afterDraw
in classComponent<CardAccordion>
-
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
.- Specified by:
writeHTML
in classComponent<CardAccordion>
- Returns:
- If the componentwas drawn,
true
, otherwisefalse
-