Package org.japura.gui

Examples of org.japura.gui.CheckList


  @Override
  public Component getListCellRendererComponent(JList list, Object value,
                        int index, boolean isSelected,
                        boolean cellHasFocus) {
  if (list instanceof CheckList) {
    CheckList cbl = (CheckList) list;
    ListCheckModel model = cbl.getModel();
    boolean checked = model.isChecked(value);
    boolean locked = model.isLocked(value);
    setSelected(checked);

    if (locked || cbl.isEnabled() == false) {
    setEnabled(false);
    } else {
    setEnabled(true);
    }
View Full Code Here


  return TransferHandler.COPY;
  }

  protected boolean canTransfer(JComponent c) {
  if (c instanceof CheckList) {
    CheckList list = (CheckList) c;
    return CheckListTransferable.isAvailableToTransfer(list);
  }
  return false;
  }
View Full Code Here

TOP

Related Classes of org.japura.gui.CheckList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.