Class LiveOneClickTable
java.lang.Object
com.illumon.iris.console.utils.oneclick.LiveOneClickTable
- All Implemented Interfaces:
Deflatable<LiveOneClickTable>,CloseableWidget,ContextAwareLiveWidget<LiveOneClickTable>,LiveWidget<LiveOneClickTable>,LiveWidgetVisibilityProvider,Serializable
@ScriptApi
public class LiveOneClickTable
extends Object
implements ContextAwareLiveWidget<LiveOneClickTable>, LiveWidgetVisibilityProvider, CloseableWidget, Serializable
A One Click Table displays an OneClickTablePanel which is blank until the user filters the table via a One Click.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondeflate(ExportedObjectClient client) Convert this object into an Inflatable suitable for serialization.getComponent(AsyncPanel dataPanel, String viewId, Object view, String title, Object irisWidgetSupportObject, com.fishlib.io.logger.Logger log) Gets the UI component.getName()Gets the name of the Live Widget.gets the processor connection.intGets the session ID for console widgets.String[]Gets the valid groups for visibility of this widget.voidonClose()static LiveOneClickTableoneClickTable(Table table, String oneClickColumn) Creates a LiveOneClickTableSupplier.voidSets the name of the Live Widget.voidsetProcessorConnection(QueryProcessorConnection processorConnection) Sets the processor connection.voidsetSessionId(int sessionId) Sets the session ID for console widgets.voidsetValidGroups(String... validGroups) Sets the valid groups for visibility of this widget.voidsetValidGroups(Collection<String> validGroups) Sets the valid groups for visibility of this widget.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.illumon.iris.db.tables.utils.LiveWidget
getComponent, updateTelemetryInfo
-
Method Details
-
oneClickTable
Creates a LiveOneClickTableSupplier.- Parameters:
table- the table to one clickoneClickColumn- the column on which to listen for One Clicks- Returns:
- a LiveOneClickTableSupplier
-
getValidGroups
Gets the valid groups for visibility of this widget.- Specified by:
getValidGroupsin interfaceLiveWidgetVisibilityProvider- Returns:
- the valid groups, null if it has not been set
-
setValidGroups
Sets the valid groups for visibility of this widget.- Parameters:
validGroups- the valid groups
-
setValidGroups
Sets the valid groups for visibility of this widget.- Parameters:
validGroups- the valid groups
-
getComponent
public JComponent getComponent(AsyncPanel dataPanel, String viewId, Object view, String title, Object irisWidgetSupportObject, com.fishlib.io.logger.Logger log) Description copied from interface:LiveWidgetGets the UI component.- Specified by:
getComponentin interfaceLiveWidget<LiveOneClickTable>- Parameters:
dataPanel- data panelviewId- view idview- viewtitle- titleirisWidgetSupportObject- widget support objectlog- log- Returns:
- UI component
-
setName
Description copied from interface:ContextAwareLiveWidgetSets the name of the Live Widget.- Specified by:
setNamein interfaceContextAwareLiveWidget<LiveOneClickTable>- Parameters:
name- the name of the Live Widget
-
getName
Description copied from interface:ContextAwareLiveWidgetGets the name of the Live Widget.- Specified by:
getNamein interfaceContextAwareLiveWidget<LiveOneClickTable>- Returns:
- the name of the Live Widget
-
setProcessorConnection
Description copied from interface:ContextAwareLiveWidgetSets the processor connection.- Specified by:
setProcessorConnectionin interfaceContextAwareLiveWidget<LiveOneClickTable>- Parameters:
processorConnection- the processor connection
-
getProcessorConnection
Description copied from interface:ContextAwareLiveWidgetgets the processor connection.- Specified by:
getProcessorConnectionin interfaceContextAwareLiveWidget<LiveOneClickTable>- Returns:
- the processor connection
-
setSessionId
public void setSessionId(int sessionId) Description copied from interface:ContextAwareLiveWidgetSets the session ID for console widgets.- Specified by:
setSessionIdin interfaceContextAwareLiveWidget<LiveOneClickTable>- Parameters:
sessionId- the session ID
-
getSessionId
public int getSessionId()Description copied from interface:ContextAwareLiveWidgetGets the session ID for console widgets.- Specified by:
getSessionIdin interfaceContextAwareLiveWidget<LiveOneClickTable>- Returns:
- the session ID
-
onClose
public void onClose()- Specified by:
onClosein interfaceCloseableWidget
-
deflate
Description copied from interface:DeflatableConvert this object into an Inflatable suitable for serialization.- Specified by:
deflatein interfaceDeflatable<LiveOneClickTable>- Parameters:
client- the ExportedObjectClient we are deflating for.- Returns:
- an Inflatable for serializing to the client
-