public class DesignerCUserWindow extends DesignerControlAdapter
Modifier and Type | Field and Description |
---|---|
static String[] |
TYPES
Predefined types (index-1).
|
Constructor and Description |
---|
DesignerCUserWindow() |
Modifier and Type | Method and Description |
---|---|
JComponent |
createComponent(PanelDesignerControl controller,
PhantomFile data,
Object previousAttachment)
Creates the component with the specified data.
|
boolean |
needsImmediateCreation(byte[] data)
Checks if component needs immediate creation in the Win32 thread.
|
void |
onDestroy(PanelDesignerControl controller)
Called when destroyed.
|
void |
prePaint(PanelDesignerControl controller,
Graphics2D g,
JComponent c,
int cx,
int cy)
Performs a pre-paint.
|
boolean |
setText(PanelDesignerControl controller,
String text)
Sets the text of the component if possible.
|
createComponent, getControlSBSize, getText, isSupported, onImageUpdate, onMouse, onTurnPage, onWindowPositionChanging, postPaint, setBounds, wantMouseMessages
public static String[] TYPES
public boolean needsImmediateCreation(byte[] data)
needsImmediateCreation
in interface IDesignerControl
needsImmediateCreation
in class DesignerControlAdapter
public JComponent createComponent(PanelDesignerControl controller, PhantomFile data, Object previousAttachment) throws IOException
createComponent
in interface IDesignerControl
createComponent
in class DesignerControlAdapter
controller
- The controller.data
- The in-memory control data.previousAttachment
- The previous attachment if non-null.IOException
- For file errors.public void prePaint(PanelDesignerControl controller, Graphics2D g, JComponent c, int cx, int cy)
prePaint
in interface IDesignerControl
prePaint
in class DesignerControlAdapter
public boolean setText(PanelDesignerControl controller, String text)
setText
in interface IDesignerControl
setText
in class DesignerControlAdapter
public void onDestroy(PanelDesignerControl controller)
onDestroy
in interface IDesignerControl
onDestroy
in class DesignerControlAdapter
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.