fixed minor inconveniences
This commit is contained in:
parent
d0fded868e
commit
2127018b58
@ -194,12 +194,25 @@ public class ComponentList<E> extends JPanel {
|
|||||||
return selected;
|
return selected;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return the model
|
||||||
|
* @since Envoy v0.1-beta
|
||||||
|
*/
|
||||||
|
public ComponentListModel<E> getModel() { return model; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the multipleSelectionEnabled
|
* @return the multipleSelectionEnabled
|
||||||
* @since Envoy v0.1-beta
|
* @since Envoy v0.1-beta
|
||||||
*/
|
*/
|
||||||
public boolean isMultipleSelectionEnabled() { return multipleSelectionEnabled; }
|
public boolean isMultipleSelectionEnabled() { return multipleSelectionEnabled; }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param multipleSelectionEnabled if true, multiple elements can be selected in
|
||||||
|
* the component list
|
||||||
|
* @since Envoy v0.1-beta
|
||||||
|
*/
|
||||||
|
public void setMultipleSelectionEnabled(boolean multipleSelectionEnabled) { this.multipleSelectionEnabled = multipleSelectionEnabled; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enables the selection of multiple elements.
|
* Enables the selection of multiple elements.
|
||||||
*
|
*
|
||||||
|
@ -27,11 +27,6 @@ public class UserComponentListRenderer implements ComponentListCellRenderer<User
|
|||||||
|
|
||||||
private static final long serialVersionUID = -2379244319112111284L;
|
private static final long serialVersionUID = -2379244319112111284L;
|
||||||
|
|
||||||
/**
|
|
||||||
* @since Envoy v0.1-beta
|
|
||||||
*/
|
|
||||||
public UserComponentListRenderer() {}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public JComponent getListCellComponent(ComponentList<? extends User> list, User value, boolean isSelected) {
|
public JComponent getListCellComponent(ComponentList<? extends User> list, User value, boolean isSelected) {
|
||||||
final JPanel panel = new JPanel();
|
final JPanel panel = new JPanel();
|
||||||
|
Reference in New Issue
Block a user