Class ParameterGroupImpl
- java.lang.Object
-
- com.biglybt.pifimpl.local.ui.config.ParameterImpl
-
- com.biglybt.pifimpl.local.ui.config.ParameterGroupImpl
-
- All Implemented Interfaces:
ParameterListener
,ConfigParameter
,EnablerParameter
,Parameter
,ParameterGroup
public class ParameterGroupImpl extends ParameterImpl implements ParameterGroup
-
-
Field Summary
Fields Modifier and Type Field Description private int
num_columns
private ParameterImpl[]
parameters
private java.lang.String
resource
private ParameterTabFolderImpl
tab_folder
-
Fields inherited from class com.biglybt.pifimpl.local.ui.config.ParameterImpl
configKey
-
Fields inherited from interface com.biglybt.pif.ui.config.Parameter
MODE_ADVANCED, MODE_BEGINNER, MODE_INTERMEDIATE
-
-
Constructor Summary
Constructors Constructor Description ParameterGroupImpl(java.lang.String _resource, Parameter... _parameters)
ParameterGroupImpl(java.lang.String _resource, java.util.List<? extends Parameter> _parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getGroupTitleKey()
int
getNumberColumns()
ParameterImpl[]
getParameters()
ParameterTabFolderImpl
getTabFolder()
java.lang.Object
getValueObject()
Retrieve the parameter's value as an Object.void
setEnabled(boolean e)
Sets whether the UI object for this parameter is enabled (changeable) or disabled (not changeable, and usually grayed out)void
setGroupTitle(java.lang.String title)
void
setGroupTitleKey(java.lang.String resourceKey)
void
setNumberOfColumns(int num)
Set number of "columns" group will have.ParameterGroupImpl
setNumberOfColumns2(int num)
void
setTabFolder(ParameterTabFolderImpl tf)
int
size(boolean countChildren)
-
Methods inherited from class com.biglybt.pifimpl.local.ui.config.ParameterImpl
addConfigParameterListener, addDisabledOnSelection, addDisabledOnSelection, addEnabledOnSelection, addEnabledOnSelection, addImplListener, addListener, addValidator, destroy, fireParameterChanged, getConfigKeyName, getDisabledOnSelectionParameters, getEnabledOnSelectionParameters, getGenerateIntermediateEvents, getGroup, getIndent, getKey, getLabelKey, getLabelText, getMinimumRequiredUserMode, getReferenceID, hasBeenSet, isEnabled, isForUIType, isIndentFancy, isVisible, parameterChanged, refreshControl, removeConfigParameterListener, removeImplListener, removeListener, resetToDefault, search, setAllowedUiTypes, setGenerateIntermediateEvents, setGroup, setIndent, setLabelKey, setLabelText, setMinimumRequiredUserMode, setReferenceID, setVisible, validate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.biglybt.pif.config.ConfigParameter
addConfigParameterListener, removeConfigParameterListener
-
Methods inherited from interface com.biglybt.pif.ui.config.Parameter
addListener, addValidator, getConfigKeyName, getGenerateIntermediateEvents, getLabelKey, getLabelText, getMinimumRequiredUserMode, hasBeenSet, isEnabled, isForUIType, isVisible, removeListener, resetToDefault, setAllowedUiTypes, setGenerateIntermediateEvents, setIndent, setLabelKey, setLabelText, setMinimumRequiredUserMode, setVisible
-
-
-
-
Field Detail
-
resource
private java.lang.String resource
-
parameters
private ParameterImpl[] parameters
-
num_columns
private int num_columns
-
tab_folder
private ParameterTabFolderImpl tab_folder
-
-
Method Detail
-
setTabFolder
public void setTabFolder(ParameterTabFolderImpl tf)
-
getTabFolder
public ParameterTabFolderImpl getTabFolder()
-
getGroupTitleKey
public java.lang.String getGroupTitleKey()
- Specified by:
getGroupTitleKey
in interfaceParameterGroup
-
setGroupTitle
public void setGroupTitle(java.lang.String title)
- Specified by:
setGroupTitle
in interfaceParameterGroup
-
setGroupTitleKey
public void setGroupTitleKey(java.lang.String resourceKey)
- Specified by:
setGroupTitleKey
in interfaceParameterGroup
-
setNumberOfColumns2
public ParameterGroupImpl setNumberOfColumns2(int num)
-
setNumberOfColumns
public void setNumberOfColumns(int num)
Description copied from interface:ParameterGroup
Set number of "columns" group will have. A column is typically one parameter, including its label.- Specified by:
setNumberOfColumns
in interfaceParameterGroup
-
getNumberColumns
public int getNumberColumns()
-
setEnabled
public void setEnabled(boolean e)
Description copied from interface:Parameter
Sets whether the UI object for this parameter is enabled (changeable) or disabled (not changeable, and usually grayed out)- Specified by:
setEnabled
in interfaceParameter
- Overrides:
setEnabled
in classParameterImpl
- Parameters:
e
- The new enabled state
-
getParameters
public ParameterImpl[] getParameters()
-
size
public int size(boolean countChildren)
- Specified by:
size
in interfaceParameterGroup
-
getValueObject
public java.lang.Object getValueObject()
Description copied from interface:Parameter
Retrieve the parameter's value as an Object. Subclasses will usually have a getValue() that will return a specific type.- Specified by:
getValueObject
in interfaceParameter
- Overrides:
getValueObject
in classParameterImpl
-
-