|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amx.duet.devicesdk.component.SourceSelectComponentImpl
com.amx.duet.tools.comm.component.VirtualSourceSelectComponent
The VirtualSourceSelectComponent class store and maintains a list of selectable sources for the device. Each source is added to both an internal list within this class and a list stored in the parent class. Input select group number has a 1:1 correlation with input source inputNumber. The input source should only be set to active if it has been configured within the group to be the only selectable source. Thus, in a device where all sources are selectable (mutually exclusive) each source must be set as an active source. The active source can be changed with a call to the updateInputSource() method.
Constructor Summary | |
VirtualSourceSelectComponent(com.amx.duet.devicesdk.component.ISourceSelectComponent caller,
int index)
|
Method Summary | |
void |
addInputProperty(int groupNumber,
java.lang.String deviceLabel,
com.amx.duet.devicesdk.type.AVType avType,
com.amx.duet.devicesdk.type.InputSourceSelect sourceType,
boolean bActive)
Adds an InputProperty object to the source select list. |
void |
dispose()
Class destructor used for clean up |
int |
getInputCount()
|
java.lang.String[] |
getInputProperties()
|
java.lang.String |
getInputProperty(int index)
|
java.util.Vector |
getInputs()
Returns the entire list of inputs. |
int |
getInputSelect()
|
int |
getSelectedInput()
Returns the currently selected input. |
com.amx.duet.devicesdk.component.ISourceSelectComponent |
getSourceSelectComponent()
Returns the currently stored SourceSelectComponent. |
boolean |
isValidInput(com.amx.duet.devicesdk.type.InputSourceSelect sourceSelect,
int inputNumber)
Check to see if the InputSourceSelect matches up with the input number. |
void |
refresh()
Process events for all applicable events for the component. |
void |
reinitialize()
Reset local variables for the component. |
void |
setInputSelect(int index)
|
void |
setInputSource(com.amx.duet.devicesdk.type.InputSourceSelectInfo sourceSelectInfo)
|
void |
setInputSource(com.amx.duet.devicesdk.type.InputSourceSelect sourceSelect,
int inputNumber)
|
void |
updateInputSelect(int index)
Sets the current Source Select Input Source. The new value is compared against the current value. |
void |
updateInputSource(com.amx.duet.devicesdk.type.InputSourceSelect sourceSelect,
int inputNumber)
|
Methods inherited from class com.amx.duet.devicesdk.component.SourceSelectComponentImpl |
addInputSourceSelectInfo, addInputSourceSelectInfo, addSourceSelectComponentListener, cycleInputSelect, cycleInputSource, getInputGroupSelect, getInputSource, getSourceSelectComponent, getSourceSelectComponentCount, getSourceSelectComponentIndex, getSourceSelectDisplayText, getSourceSelectDisplayText, getSourceSelectDisplayText, getSourceSelectValues, processInputCountEvent, processInputGroupSelectEvent, processInputPropertiesEvent, processInputPropertyEvent, processInputSelectEvent, processInputSourceEvent, removeAll, removeInputSourceSelectInfo, removeInputSourceSelectInfo, removeSourceSelectComponentListener, setInputGroupSelect, updateInputCount, updateInputProperties, updateInputProperty, updateInputSource |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public VirtualSourceSelectComponent(com.amx.duet.devicesdk.component.ISourceSelectComponent caller, int index)
caller
- index
- Method Detail |
public void dispose()
ICommonComponent
dispose
in interface ICommonComponent
public int getInputCount()
getInputCount
in interface com.amx.duet.devicesdk.component.ISourceSelectComponent2
public void addInputProperty(int groupNumber, java.lang.String deviceLabel, com.amx.duet.devicesdk.type.AVType avType, com.amx.duet.devicesdk.type.InputSourceSelect sourceType, boolean bActive)
groupNumber
- integer value representing the selectable sourcedeviceLabel
- description provided by device to represent sourceavType
- Audio/Video typesourceType
- type of input source (NamedInput or SignalType)bActive
- specifies that this is a selectable sourcepublic java.lang.String[] getInputProperties()
getInputProperties
in interface com.amx.duet.devicesdk.component.ISourceSelectComponent2
public java.lang.String getInputProperty(int index)
getInputProperty
in interface com.amx.duet.devicesdk.component.ISourceSelectComponent2
public int getInputSelect()
getInputSelect
in interface com.amx.duet.devicesdk.component.ISourceSelectComponent2
public int getSelectedInput()
public java.util.Vector getInputs()
public boolean isValidInput(com.amx.duet.devicesdk.type.InputSourceSelect sourceSelect, int inputNumber)
sourceSelect
- type of input source (NamedInput or SignalType)inputNumber
- input source select group number
public void setInputSelect(int index)
setInputSelect
in interface com.amx.duet.devicesdk.component.ISourceSelectComponent2
public void setInputSource(com.amx.duet.devicesdk.type.InputSourceSelect sourceSelect, int inputNumber)
setInputSource
in interface com.amx.duet.devicesdk.component.ISourceSelectComponent3
public void setInputSource(com.amx.duet.devicesdk.type.InputSourceSelectInfo sourceSelectInfo)
setInputSource
in interface com.amx.duet.devicesdk.component.ISourceSelectComponent3
public void updateInputSelect(int index)
index
- int the selected index within the source listpublic void updateInputSource(com.amx.duet.devicesdk.type.InputSourceSelect sourceSelect, int inputNumber)
public void refresh()
ICommonComponent
refresh
in interface ICommonComponent
public void reinitialize()
ICommonComponent
reinitialize
in interface ICommonComponent
public com.amx.duet.devicesdk.component.ISourceSelectComponent getSourceSelectComponent()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |