Package org.jboss.hal.core.finder
Class FinderColumn<T>
- java.lang.Object
-
- org.jboss.hal.core.finder.FinderColumn<T>
-
- Type Parameters:
T- The column and items type.
- All Implemented Interfaces:
org.jboss.elemento.IsElement<elemental2.dom.HTMLDivElement>,Attachable
- Direct Known Subclasses:
AbstractDeploymentColumn,ApplicationSecurityDomainColumn,ApplicationSecurityDomainColumn,AssignmentColumn,CacheColumn,CacheContainerColumn,ChannelColumn,ChildResourceColumn,DataSourceColumn,DataSourceColumn,DeploymentColumn,DestinationColumn,EjbColumn,ElytronColumn,ElytronColumn,EndpointColumn,GroupColumn,HostColumn,HostColumn,HostPatchesColumn,InterfaceColumn,JdbcDriverColumn,JmsBridgeColumn,JmsBridgeColumn,JobColumn,JpaColumn,ListenerColumn,LogFileColumn,LoggingProfileColumn,MailSessionColumn,MembershipColumn,ModclusterBalancerColumn,ModclusterBalancerNodeColumn,ModclusterBalancerNodeContextColumn,ModclusterColumn,PatchesColumn,ProfileColumn,ProxyColumn,ResourceAdapterColumn,ResourceAdapterColumn,RestResourceColumn,RhcpColumns.Album,RhcpColumns.Track,RoleColumn,SecurityDomainColumn,ServerColumn,ServerColumn,ServerColumn,ServerColumn,ServerColumn,ServerGroupColumn,ServerGroupColumn,ServerSettingsColumn,ServletContainerColumn,SocketBindingGroupColumn,StandaloneServerColumn,StaticItemColumn,SubsystemColumn,SubsystemColumn,UndertowColumn,UndertowSettingsColumn,UpdateColumn,UpdateManagerHostColumn,UserColumn,WorkerColumn
public class FinderColumn<T> extends Object implements org.jboss.elemento.IsElement<elemental2.dom.HTMLDivElement>, Attachable
Describes a column in a finder. A column has an unique id, a title, a number of optional column actions and anItemRendererwhich defines how the items of this column are rendered. All items of a column must have the same type parameter which is the type parameter of this column.The idea is that columns are self-contained and don't need direct references to other columns. References are only provided by id. The column registry will then resolve the id against an existing column.
Please do not use constants from
ModelDescriptionConstantsfor the column ids (it makes refactoring harder). Instead add an id toIds.TODO This class is huge! Try to refactor and break into smaller pieces.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFinderColumn.Builder<T>static classFinderColumn.RefreshMode
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattach()voiddetach()elemental2.dom.HTMLDivElementelement()StringgetId()StringgetTitle()voidrefresh(String selectItemId)Refreshes and selects and the specified item.voidrefresh(FinderColumn.RefreshMode refreshMode)voidrefresh(Callback callback)
-
-
-
Method Detail
-
attach
public void attach()
- Specified by:
attachin interfaceAttachable
-
detach
public void detach()
- Specified by:
detachin interfaceAttachable
-
element
public elemental2.dom.HTMLDivElement element()
- Specified by:
elementin interfaceorg.jboss.elemento.IsElement<T>
-
refresh
public void refresh(FinderColumn.RefreshMode refreshMode)
-
refresh
public void refresh(String selectItemId)
Refreshes and selects and the specified item.
-
refresh
public void refresh(Callback callback)
-
getId
public String getId()
-
getTitle
public String getTitle()
-
-