001package kiwi.ui.propeditor; 002 003import java.awt.event.*; 004import javax.swing.*; 005 006/** 007 * @author Mark Lindner 008 */ 009 010public class FixedValueEditor extends PropertyValueEditor 011 { 012 private JLabel label; 013 014 /** 015 */ 016 017 public FixedValueEditor() 018 { 019 label = new JLabel(); 020 } 021 022 /** 023 */ 024 025 protected void prepareEditor() 026 { 027 Object value = property.getValue(); 028 029 label.setText(value == null ? null : value.toString()); 030 } 031 032 /** 033 */ 034 035 /** 036 */ 037 038 public JComponent getEditorComponent() 039 { 040 return(label); 041 } 042 043 public void addActionListener(ActionListener listener) 044 { 045 } 046 047 /** 048 */ 049 050 public void removeActionListener(ActionListener listener) 051 { 052 } 053 054} 055 056/* end of source file */