/** Method to refresh the file list when a new filter is selected. */ public void refreshDirectory() { changeDirectory(currDir); typeText.setText(currFilter.getTextBox().getText()); if (currFilter.isNoFill()) { currFilter.setNoFill(false); currFilter.setStrokeColor(new MTColor(0, 0, 0, 150)); currFilter.setStrokeWeight(2); currFilter.setNoStroke(false); } types.setVisible(false); typesShown = false; }
/** * Method to set the visually selected filter * * @param filter */ public void setSelectedFileFilter(WBFileFilter filter) { if (currSelectedFilter == null) currSelectedFilter = filter; if (currSelectedFilter != filter) { currSelectedFilter.setStrokeColor(new MTColor(0, 0, 0, 0)); currSelectedFilter.setNoFill(true); currSelectedFilter = filter; } if (currSelectedFilter != currFilter && !currFilter.isNoFill()) { currFilter.setStrokeColor(new MTColor(0, 0, 0, 0)); currFilter.setNoFill(true); } }