F
- public class HubNewObject<F extends OAObject> extends Object
This is done by using a second hub to contain the new object. This second hub will be configured to act the same as the mainHub. For example, if the mainHub has a masterObject/Hub.
This can be used by wizards that create new objects, or web pages, etc. to allow a new object to be created and then added to the mainHub when it is ready to submit.
Constructor and Description |
---|
HubNewObject(Hub<F> hubMain) |
HubNewObject(Hub<F> hubMain,
Hub<F> hubNewObject) |
Modifier and Type | Method and Description |
---|---|
void |
cancel() |
F |
createNewObject()
Create a new object that can then be added to hubNewObject;
|
Hub<F> |
getMainHub() |
Hub<F> |
getNewObjectHub() |
protected void |
setup() |
void |
submit()
Move objects in hubNewObject to hubMain.
|
public HubNewObject(Hub<F> hubMain, Hub<F> hubNewObject)
hubMain
- "real" hub that wants to have a second hub used for creating new objects.hubNewObject
- "temp" hub that is used for holding new objects, and then adding to hubMain when submit is called.protected void setup()
public void submit()
public void cancel()
public F createNewObject()
Copyright © 1999–2025 ViaOA. All rights reserved.