Modifier and Type | Interface and Description |
---|---|
static class |
HomeView.ActionType
The actions proposed by the view to user.
|
static class |
HomeView.OpenDamagedHomeAnswer |
static class |
HomeView.SaveAnswer |
View.PointerType
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DISPLAY_HOME_FURNITURE_ADDITIONAL_PROPERTY_ACTION_PREFIX |
static java.lang.String |
SORT_HOME_FURNITURE_ADDITIONAL_PROPERTY_ACTION_PREFIX |
Modifier and Type | Method and Description |
---|---|
void |
attachView(View view)
Attaches the given
view to home view. |
boolean |
confirmDeleteCatalogSelection()
Displays a dialog that let user choose whether he wants to delete
the selected furniture from catalog or not.
|
boolean |
confirmExit()
Displays a dialog that let user choose whether he wants to exit
application or not.
|
HomeView.OpenDamagedHomeAnswer |
confirmOpenDamagedHome(java.lang.String homeName,
Home damagedHome,
java.util.List<Content> invalidContent)
Displays a dialog that lets user choose what he wants
to do with a damaged home he tries to open it.
|
boolean |
confirmReplaceFurnitureLibrary(java.lang.String furnitureLibraryName)
Displays a dialog that lets user choose whether he wants to overwrite
an existing furniture library or not.
|
boolean |
confirmReplaceLanguageLibrary(java.lang.String languageLibraryName)
Displays a dialog that lets user choose whether he wants to overwrite
an existing language library or not.
|
boolean |
confirmReplacePlugin(java.lang.String pluginName)
Displays a dialog that lets user choose whether he wants to overwrite
an existing plug-in or not.
|
boolean |
confirmReplaceTexturesLibrary(java.lang.String texturesLibraryName)
Displays a dialog that lets user choose whether he wants to overwrite
an existing textures library or not.
|
HomeView.SaveAnswer |
confirmSave(java.lang.String homeName)
Displays a dialog that lets user choose whether he wants to save
the current home or not.
|
boolean |
confirmSaveNewerHome(java.lang.String homeName)
Displays a dialog that let user choose whether he wants to save
a home that was created with a newer version of Sweet Home 3D.
|
void |
detachView(View view)
Detaches the given
view from home view. |
void |
exportToCSV(java.lang.String csvName)
Exports furniture list to a given SVG file.
|
void |
exportToOBJ(java.lang.String objFile)
Exports the 3D home objects to a given OBJ file.
|
void |
exportToSVG(java.lang.String svgName)
Exports the plan objects to a given SVG file.
|
java.util.List<Selectable> |
getClipboardItems()
Returns the list of selectable items that are currently in clipboard
or
null if clipboard doesn't contain any selectable item. |
void |
invokeLater(java.lang.Runnable runnable)
Execute
runnable asynchronously in the thread
that manages toolkit events. |
boolean |
isClipboardEmpty()
Returns
true if clipboard contains data that
components are able to handle. |
void |
printToPDF(java.lang.String pdfFile)
Prints a home to a given PDF file.
|
void |
setActionEnabled(java.lang.String actionKey,
boolean enabled)
Enables or disables the action matching
actionKey . |
void |
setEnabled(HomeView.ActionType actionType,
boolean enabled)
Enables or disables the action matching
actionType . |
void |
setTransferEnabled(boolean enabled)
Enables or disables transfer between components.
|
void |
setUndoRedoName(java.lang.String undoText,
java.lang.String redoText)
Sets the name and tool tip of undo and redo actions.
|
void |
showAboutDialog()
Displays an about dialog.
|
boolean |
showActionTipMessage(java.lang.String actionTipKey)
Displays the tip matching
actionTipKey and
returns true if the user chose not to display again the tip. |
java.util.List<Camera> |
showDeletedCamerasDialog()
Displays a dialog showing the list of cameras stored in home
and returns the ones selected by the user to be deleted.
|
void |
showError(java.lang.String message)
Displays
message in an error message box. |
java.lang.String |
showExportToCSVDialog(java.lang.String name)
Shows a content chooser save dialog to export furniture list in a CSV file.
|
java.lang.String |
showExportToOBJDialog(java.lang.String homeName)
Shows a content chooser save dialog to export a 3D home in a OBJ file.
|
java.lang.String |
showExportToSVGDialog(java.lang.String name)
Shows a content chooser save dialog to export a home plan in a SVG file.
|
java.lang.String |
showImportFurnitureLibraryDialog()
Displays a content chooser open dialog to choose a furniture library.
|
java.lang.String |
showImportLanguageLibraryDialog()
Displays a content chooser open dialog to choose a language library.
|
java.lang.String |
showImportTexturesLibraryDialog()
Displays a content chooser open dialog to choose a textures library.
|
void |
showMessage(java.lang.String message)
Displays
message in a message box. |
java.lang.String |
showNewHomeFromExampleDialog()
Displays a dialog to let the user choose a home example.
|
java.lang.String |
showOpenDialog()
Displays a content chooser open dialog to choose the name of a home.
|
java.util.concurrent.Callable<java.lang.Void> |
showPrintDialog()
Shows a print dialog to print the home displayed by this pane.
|
java.lang.String |
showPrintToPDFDialog(java.lang.String homeName)
Shows a content chooser save dialog to print a home in a PDF file.
|
java.lang.String |
showSaveDialog(java.lang.String homeName)
Displays a content chooser save dialog to choose the name of a home.
|
java.lang.String |
showStoreCameraDialog(java.lang.String cameraName)
Displays a dialog that lets the user choose a name for the current camera.
|
boolean |
showUpdatesMessage(java.lang.String updatesMessage,
boolean showOnlyMessage)
Displays the given message and returns
false if the user
doesn't want to be informed of the displayed updates and showOnlyMessage is false . |
static final java.lang.String SORT_HOME_FURNITURE_ADDITIONAL_PROPERTY_ACTION_PREFIX
static final java.lang.String DISPLAY_HOME_FURNITURE_ADDITIONAL_PROPERTY_ACTION_PREFIX
void setEnabled(HomeView.ActionType actionType, boolean enabled)
actionType
.void setActionEnabled(java.lang.String actionKey, boolean enabled)
actionKey
.void setUndoRedoName(java.lang.String undoText, java.lang.String redoText)
null
,
the properties will be reset to their initial values.void setTransferEnabled(boolean enabled)
void detachView(View view)
view
from home view.void attachView(View view)
view
to home view.java.lang.String showOpenDialog()
HomeView.OpenDamagedHomeAnswer confirmOpenDamagedHome(java.lang.String homeName, Home damagedHome, java.util.List<Content> invalidContent)
java.lang.String showNewHomeFromExampleDialog()
java.lang.String showImportLanguageLibraryDialog()
boolean confirmReplaceLanguageLibrary(java.lang.String languageLibraryName)
java.lang.String showImportFurnitureLibraryDialog()
boolean confirmReplaceFurnitureLibrary(java.lang.String furnitureLibraryName)
java.lang.String showImportTexturesLibraryDialog()
boolean confirmReplaceTexturesLibrary(java.lang.String texturesLibraryName)
boolean confirmReplacePlugin(java.lang.String pluginName)
java.lang.String showSaveDialog(java.lang.String homeName)
HomeView.SaveAnswer confirmSave(java.lang.String homeName)
HomeView.SaveAnswer.SAVE
if user chose to save home,
HomeView.SaveAnswer.DO_NOT_SAVE
if user don't want to save home,
or HomeView.SaveAnswer.CANCEL
if doesn't want to continue current operation.boolean confirmSaveNewerHome(java.lang.String homeName)
true
if user confirmed to save.boolean confirmDeleteCatalogSelection()
true
if user confirmed to delete.boolean confirmExit()
true
if user confirmed to exit.void showError(java.lang.String message)
message
in an error message box.void showMessage(java.lang.String message)
message
in a message box.boolean showActionTipMessage(java.lang.String actionTipKey)
actionTipKey
and
returns true
if the user chose not to display again the tip.void showAboutDialog()
java.util.concurrent.Callable<java.lang.Void> showPrintDialog()
null
if the user canceled print.
The call
method of the returned task may throw a
RecorderException
exception if print failed
or an InterruptedRecorderException
exception if it was interrupted.java.lang.String showPrintToPDFDialog(java.lang.String homeName)
void printToPDF(java.lang.String pdfFile) throws RecorderException
RecorderException
java.lang.String showExportToCSVDialog(java.lang.String name)
void exportToCSV(java.lang.String csvName) throws RecorderException
RecorderException
java.lang.String showExportToSVGDialog(java.lang.String name)
void exportToSVG(java.lang.String svgName) throws RecorderException
RecorderException
java.lang.String showExportToOBJDialog(java.lang.String homeName)
void exportToOBJ(java.lang.String objFile) throws RecorderException
RecorderException
java.lang.String showStoreCameraDialog(java.lang.String cameraName)
java.util.List<Camera> showDeletedCamerasDialog()
boolean isClipboardEmpty()
true
if clipboard contains data that
components are able to handle.java.util.List<Selectable> getClipboardItems()
null
if clipboard doesn't contain any selectable item.boolean showUpdatesMessage(java.lang.String updatesMessage, boolean showOnlyMessage)
false
if the user
doesn't want to be informed of the displayed updates and showOnlyMessage
is false
.void invokeLater(java.lang.Runnable runnable)
runnable
asynchronously in the thread
that manages toolkit events.
© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License