public class LogURLParameter extends Object
LogFileManager
in order to locate the resource to open.LogURLParameter
defines a part of a LogURL
.LogURL
,
LogURLParameterType
Constructor and Description |
---|
LogURLParameter(String pName,
LogURLParameterType pType)
Construct a mandatory
LogURLParameter with its name and type and no default value |
LogURLParameter(String pName,
LogURLParameterType pType,
Object pDefaultValue)
Construct a mandatory
LogURLParameter with its name, type, and default value |
LogURLParameter(String pName,
LogURLParameterType pType,
Object pDefaultValue,
boolean pOptional)
Construct an optional or mandatory
LogURLParameter with its name, type, and default value |
LogURLParameter(String pName,
LogURLParameterType pType,
Object pDefaultValue,
boolean pOptional,
Object[] pPossibleValues)
Construct an optional or mandatory
LogURLParameter with its name, type, default value, and possible values |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Clone this Parameter (called by LogMX to clone
LogURL returned by the Manager) |
Object |
getDefaultValue()
Getter for attribute
defaultValue : Default value that will be displayed in the GUI |
String |
getName()
Getter for attribute
name : Name that will be displayed in GUI just before the parameter's value |
Object[] |
getPossibleValues()
Getter for attribute
possibleValues : Possible values for parameters of type LogURLParameterType.ENUM only |
String |
getTooltip()
Getter for attribute
tooltip : Text that will appear in GUI as a tooltip for this parameter |
LogURLParameterType |
getType()
Getter for attribute
type : Parameter type used by LogMX to render the "Open file" dialog and to check parameters validity |
Object |
getValue()
Getter for attribute
value : Set by LogMX GUI to specify the parameter value to the Manager |
boolean |
isOptional()
Getter for attribute
optional : Indicates whether this parameter is optional |
boolean |
isUsedForConnection()
Getter for attribute
usedForConnection : Indicates whether this parameter is used to establish a connection |
void |
setDefaultValue(Object pDefaultValue)
Setter for attribute
defaultValue : Default value that will be displayed in the GUI |
void |
setOptional(boolean pOptional)
Setter for attribute
optional : Indicates whether this parameter is optional |
void |
setShouldBeDisplayAsGeneric(boolean pDisplayAsGeneric)
Setter for attribute
shouldBeDisplayedAsGeneric : Indicates whether this parameter should be displayed in "Open file" dialog with the other generic fields (used by some LogMX complex Managers for advanced parameters set in a separate panel of "Open file" dialog) |
void |
setTooltip(String pTooltip)
Setter for attribute
tooltip : Text that will appear in GUI as a tooltip for this parameter |
void |
setUsedForConnection(boolean pUsedForConnection)
Setter for attribute
usedForConnection : Indicates whether this parameter is used to establish a connection |
void |
setValue(Object pValue)
Setter for attribute
value : Set by LogMX GUI to specify the parameter value to the Manager |
boolean |
shouldBeDisplayedAsGeneric()
Getter for attribute
shouldBeDisplayedAsGeneric : Indicates whether this parameter should be displayed in "Open file" dialog with the other generic fields (used by some LogMX complex Managers for advanced parameters set in a separate panel of "Open file" dialog) |
public LogURLParameter(String pName, LogURLParameterType pType)
LogURLParameter
with its name and type and no default valuepName
- Parameter name (e.g. "login")pType
- Parameter type (e.g. LogURLParameterType.STRING
)IllegalArgumentException
- If pName
or pType
is null
public LogURLParameter(String pName, LogURLParameterType pType, Object pDefaultValue)
LogURLParameter
with its name, type, and default valuepName
- Parameter name (e.g. "login")pType
- Parameter type (e.g. LogURLParameterType.STRING
)pDefaultValue
- Parameter default value (e.g. "admin", System.getProperty("user.name")
, or null
if no default value)IllegalArgumentException
- If pName
or pType
is null
, or if pDefaultValue
is not consistent with pType
public LogURLParameter(String pName, LogURLParameterType pType, Object pDefaultValue, boolean pOptional)
LogURLParameter
with its name, type, and default valuepName
- Parameter name (e.g. "login")pType
- Parameter type (e.g. LogURLParameterType.STRING
)pDefaultValue
- Parameter default value (e.g. "admin", System.getProperty("user.name")
, or null
if no default value)pOptional
- Indicates whether this parameter is optionalIllegalArgumentException
- If pName
or pType
is null
, or if pDefaultValue
is not consistent with pType
public LogURLParameter(String pName, LogURLParameterType pType, Object pDefaultValue, boolean pOptional, Object[] pPossibleValues)
LogURLParameter
with its name, type, default value, and possible valuespName
- Parameter name (e.g. "login")pType
- Parameter type (e.g. LogURLParameterType.STRING
)pDefaultValue
- Parameter default value (e.g. "admin", System.getProperty("user.name")
, or null
if no default value)pOptional
- Indicates whether this parameter is optionalpPossibleValues
- Possible values for this parameter (pType
shall be LogURLParameterType.ENUM
).toString()
will be called on array elements to be displayed in LogMX GUI.IllegalArgumentException
- If pName
or pType
is null
, or if pDefaultValue
is not consistent with pType
public Object clone()
LogURL
returned by the Manager)clone
in class Object
Object.clone()
public String getName()
name
: Name that will be displayed in GUI just before the parameter's valuename
public Object getValue()
value
: Set by LogMX GUI to specify the parameter value to the Managervalue
public void setValue(Object pValue)
value
: Set by LogMX GUI to specify the parameter value to the ManagerpValue
- New value for attribute value
IllegalArgumentException
- If pValue
is not consistent with this parameter typepublic Object getDefaultValue()
defaultValue
: Default value that will be displayed in the GUIdefaultValue
public void setDefaultValue(Object pDefaultValue)
defaultValue
: Default value that will be displayed in the GUIpDefaultValue
- New value for attribute defaultValue
IllegalArgumentException
- If pDefaultValue
is not consistent with this parameter typepublic LogURLParameterType getType()
type
: Parameter type used by LogMX to render the "Open file" dialog and to check parameters validitytype
public boolean isOptional()
optional
: Indicates whether this parameter is optionaloptional
public void setOptional(boolean pOptional)
optional
: Indicates whether this parameter is optionalpOptional
- New value for attribute optional
public String getTooltip()
tooltip
: Text that will appear in GUI as a tooltip for this parametertooltip
public void setTooltip(String pTooltip)
tooltip
: Text that will appear in GUI as a tooltip for this parameterpTooltip
- New value for attribute tooltip
public Object[] getPossibleValues()
possibleValues
: Possible values for parameters of type LogURLParameterType.ENUM
onlypossibleValues
public boolean isUsedForConnection()
usedForConnection
: Indicates whether this parameter is used to establish a connectionusedForConnection
public void setUsedForConnection(boolean pUsedForConnection)
usedForConnection
: Indicates whether this parameter is used to establish a connectionpUsedForConnection
- New value for attribute usedForConnection
public boolean shouldBeDisplayedAsGeneric()
shouldBeDisplayedAsGeneric
: Indicates whether this parameter should be displayed in "Open file" dialog with the other generic fields (used by some LogMX complex Managers for advanced parameters set in a separate panel of "Open file" dialog)shouldBeDisplayedAsGeneric
public void setShouldBeDisplayAsGeneric(boolean pDisplayAsGeneric)
shouldBeDisplayedAsGeneric
: Indicates whether this parameter should be displayed in "Open file" dialog with the other generic fields (used by some LogMX complex Managers for advanced parameters set in a separate panel of "Open file" dialog)pDisplayAsGeneric
- New value for attribute shouldBeDisplayedAsGeneric
Copyright © 2025 LightySoft. All rights reserved. [LogMX v8.4.0 (Jan 3, 2025)]