1 19 20 package org.apache.excalibur.instrument.client; 21 22 import javax.swing.JDesktopPane ; 23 import javax.swing.JInternalFrame ; 24 25 33 class DesktopPane extends JDesktopPane 34 { 35 private transient JInternalFrame selectedFrame = null; 36 37 44 public static int LIVE_DRAG_MODE = 0; 45 46 53 public static int OUTLINE_DRAG_MODE = 1; 54 55 private int dragMode = LIVE_DRAG_MODE; 56 57 69 public void setDragMode( int dragMode ) 70 { 71 74 firePropertyChange( "dragMode", this.dragMode, dragMode ); 75 this.dragMode = dragMode; 76 } 77 78 82 public int getDragMode() 83 { 84 return dragMode; 85 } 86 87 93 public JInternalFrame getSelectedFrame() 94 { 95 return selectedFrame; 96 } 97 98 103 104 public void setSelectedFrame( JInternalFrame f ) 105 { 106 selectedFrame = f; 107 } 108 } 109 | Popular Tags |