1 19 20 package org.netbeans.spi.viewmodel; 21 22 import java.util.EventObject ; 23 24 25 32 public class ModelEvent extends EventObject { 33 34 private ModelEvent (Object source) { 35 super (source); 36 } 37 38 43 public static class TreeChanged extends ModelEvent { 44 45 52 public TreeChanged (Object source) { 53 super (source); 54 } 55 } 56 57 62 public static class TableValueChanged extends ModelEvent { 63 64 private Object node; 65 private String columnID; 66 67 76 public TableValueChanged ( 77 Object source, 78 Object node, 79 String columnID 80 ) { 81 super (source); 82 this.node = node; 83 this.columnID = columnID; 84 } 85 86 93 public Object getNode () { 94 return node; 95 } 96 97 104 public String getColumnID () { 105 return columnID; 106 } 107 } 108 109 115 public static class NodeChanged extends ModelEvent { 116 117 121 public static final int DISPLAY_NAME_MASK = 1; 122 126 public static final int ICON_MASK = 2; 127 131 public static final int SHORT_DESCRIPTION_MASK = 4; 132 136 public static final int CHILDREN_MASK = 8; 137 138 private Object node; 139 private int change; 140 141 149 public NodeChanged ( 150 Object source, 151 Object node 152 ) { 153 this (source, node, 0xFFFFFFFF); 154 } 155 156 165 public NodeChanged(Object source, Object node, int change) { 166 super (source); 167 this.node = node; 168 this.change = change; 169 } 170 171 178 public Object getNode () { 179 return node; 180 } 181 182 188 public int getChange() { 189 return change; 190 } 191 } 192 } 193 | Popular Tags |