public void setEnabled(final boolean isEnabled) { privateList.setEnabled(isEnabled); // privateListPanel.setIsSupported(isEnabled); //not actually doing anything? // publicListPanel.setIsSupported(isEnabled); //not actually doing anything? // listPanel.setIsSupported(isEnabled); //not actually doing anything? publicList.setEnabled(isEnabled); }
public RoboticonManagerView( final RoboticonManagerModel roboticonManagerModel, final RoboticonManagerModel publicRoboticonManagerModel) { privateSortedRoboticonModel = new SortedRoboticonManagerModel(roboticonManagerModel, SortOrder.TYPE); privateList = new DragAndDropJList(privateSortedRoboticonModel); privateList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); privateList.setLayoutOrientation(DragAndDropJList.VERTICAL); privateList.setCellRenderer(new MyListCellRenderer()); privateList.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); privateList.setDragEnabled(true); privateList.setSelectionBackground(Color.orange); privateList.setSelectionForeground(Color.white); publicSortedRoboticonModel = new SortedRoboticonManagerModel(publicRoboticonManagerModel, SortOrder.NAME); publicList = new DragAndDropJList(publicSortedRoboticonModel); publicList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); publicList.setLayoutOrientation(DragAndDropJList.VERTICAL); publicList.setCellRenderer(new MyListCellRenderer()); publicList.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); publicList.setDragEnabled(true); publicList.setSelectionBackground(Color.orange); publicList.setSelectionForeground(Color.white); getListPanel(); }