charite.christo
Class ReloadableClass
java.lang.Object
charite.christo.ReloadableClass
- All Implemented Interfaces:
- ChRunnable, IsEnabled, PaintHook, ActionListener, EventListener
public final class ReloadableClass
- extends Object
- implements ActionListener, ChRunnable, PaintHook, IsEnabled
A class that can be changed and compiled and reloaded at runtime
ACTION_SOURCE_CHANGED
public static final String ACTION_SOURCE_CHANGED
- See Also:
- Constant Field Values
ReloadableClass
public ReloadableClass(Class clas,
String suffix)
log
public ChTextArea log(Object... oo)
shortClassName
public String shortClassName()
getDefaultClass
public Class getDefaultClass()
getSourceFile
public File getSourceFile()
paintHook
public boolean paintHook(JComponent c,
Graphics g,
boolean after)
- Specified by:
paintHook
in interface PaintHook
after
- This method is called once before and once after super.paintComponent.
- Returns:
- means do not call super.paintComponent
isEnabled
public boolean isEnabled(Object o)
- Specified by:
isEnabled
in interface IsEnabled
buttonEdit
public ChButton buttonEdit()
buttonDelete
public ChButton buttonDelete()
buttonRun
public ChButton buttonRun()
newLabelStatus
public JComponent newLabelStatus()
actionPerformed
public void actionPerformed(ActionEvent ev)
- Specified by:
actionPerformed
in interface ActionListener
newInstance
public Object newInstance()
watch
public static void watch(ReloadableClass cl)
run
public Object run(String id,
Object arg)
- Specified by:
run
in interface ChRunnable
watch
public final ReloadableClass watch()
'The most important classes are StrapAlign, StrapProtein and StrapEvent.'