/** Title to display for tab. */
private final String _title;
/** Hint to display for tab. */
private final String _hint;
private boolean _firstRowOnly;
/** Component to display in tab. */
private DataSetScrollingPanel _comp;
/** Logger for this class. */
private final static ILogger s_log = LoggerController.createLogger( [[#variable18cad4a0]].class );
public [[#variable18cad4a0]](String title, String hint) {
this(title, hint, false);
}
public [[#variable18cad4a0]](String title, String hint, boolean firstRowOnly) {
super();
if (title == null) {
throw new IllegalArgumentException("Title == null");
}
_title = title;
_hint = hint != null ? hint: title;
_firstRowOnly = firstRowOnly;
}
/**
* Return the title for the tab.
*
* @return The title for the tab.
*/
/**
* Return the title for the tab.
*
* @return The title for the tab.
*/
public String getTitle() {
return _title;
}
/**
* Return the hint for the tab.
*
* @return The hint for the tab.
*/
/**
* Return the hint for the tab.
*
* @return The hint for the tab.
*/
public String getHint() {
return _hint;
}
public void clear() {
}
public Component getComponent() {
if (_comp == null) {
ISession session = getSession();
SessionProperties props = session.getProperties();
String destClassName = props.getMetaDataOutputClassName();
try {
_comp = new DataSetScrollingPanel(destClassName, null);
}
catch (Exception
e) {
s_log.error("Unexpected exception from call to getComponent: " + e.getMessage(), e);
}
}
return _comp;
}
|