public class EndpointsComboBoxModel extends Object implements ComboBoxModel, PropertyChangeListener
Modifier and Type | Field and Description |
---|---|
static String |
ADD_NEW_ENDPOINT |
static String |
EDIT_ENDPOINT |
Constructor and Description |
---|
EndpointsComboBoxModel(AbstractHttpRequestInterface<?> request) |
Modifier and Type | Method and Description |
---|---|
void |
addListDataListener(ListDataListener l) |
Object |
getElementAt(int index) |
String[] |
getEndpoints() |
AbstractHttpRequestInterface<?> |
getRequest() |
Object |
getSelectedItem() |
int |
getSize() |
protected void |
initEndpoints() |
void |
listenToChangesIn(Document textFieldDocument) |
protected void |
notifyContentsChanged() |
void |
propertyChange(PropertyChangeEvent evt) |
void |
refresh() |
void |
release() |
void |
removeListDataListener(ListDataListener l) |
void |
setEndpoints(String[] endpoints) |
void |
setSelectedItem(Object anItem) |
public static final String ADD_NEW_ENDPOINT
public static final String EDIT_ENDPOINT
public EndpointsComboBoxModel(AbstractHttpRequestInterface<?> request)
public AbstractHttpRequestInterface<?> getRequest()
public void setSelectedItem(Object anItem)
setSelectedItem
in interface ComboBoxModel
public void refresh()
protected void initEndpoints()
public void setEndpoints(String[] endpoints)
public String[] getEndpoints()
protected void notifyContentsChanged()
public Object getSelectedItem()
getSelectedItem
in interface ComboBoxModel
public Object getElementAt(int index)
getElementAt
in interface ListModel
public void addListDataListener(ListDataListener l)
addListDataListener
in interface ListModel
public void removeListDataListener(ListDataListener l)
removeListDataListener
in interface ListModel
public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
public void release()
public void listenToChangesIn(Document textFieldDocument)
Copyright © 2019. All Rights Reserved.