mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Clipboard Changes: When an item is added to the clipboard a status message is now displayed (which can be turned off in config). The Paste All action now also automatically clears the clipboard (again this behaviour can be turned off in config). This is to allow users to navigate around the app copying and pasting without having to ever see the clipboard.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5065 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -56,9 +56,11 @@ public class ClientConfigElement extends ConfigElementAdapter
|
||||
private String homeSpacePermission = null;
|
||||
private boolean ajaxEnabled = false;
|
||||
private String initialLocation = "myalfresco";
|
||||
private ExpiringValueCache<String> wcmDomain = new ExpiringValueCache(1000*10L);
|
||||
private ExpiringValueCache<String> wcmPort = new ExpiringValueCache(1000*10L);
|
||||
private ExpiringValueCache<String> wcmDomain = new ExpiringValueCache<String>(1000*10L);
|
||||
private ExpiringValueCache<String> wcmPort = new ExpiringValueCache<String>(1000*10L);
|
||||
private String defaultHomeSpacePath = "/app:company_home";
|
||||
private boolean clipboardStatusVisible = true;
|
||||
private boolean pasteAllAndClear = true;
|
||||
private boolean allowGuestConfig = false;
|
||||
|
||||
/**
|
||||
@@ -164,6 +166,16 @@ public class ClientConfigElement extends ConfigElementAdapter
|
||||
combinedElement.setShelfVisible(newElement.isShelfVisible());
|
||||
}
|
||||
|
||||
if (newElement.isClipboardStatusVisible() != combinedElement.isClipboardStatusVisible())
|
||||
{
|
||||
combinedElement.setClipboardStatusVisible(newElement.isClipboardStatusVisible());
|
||||
}
|
||||
|
||||
if (newElement.isPasteAllAndClearEnabled() != combinedElement.isPasteAllAndClearEnabled())
|
||||
{
|
||||
combinedElement.setPasteAllAndClearEnabled(newElement.isPasteAllAndClearEnabled());
|
||||
}
|
||||
|
||||
if (newElement.getFromEmailAddress() != null &&
|
||||
(newElement.getFromEmailAddress().equals(combinedElement.getFromEmailAddress()) == false))
|
||||
{
|
||||
@@ -220,6 +232,39 @@ public class ClientConfigElement extends ConfigElementAdapter
|
||||
{
|
||||
this.shelfVisible = shelfVisible;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns if the clipboard status messages are visible by default.
|
||||
*/
|
||||
public boolean isClipboardStatusVisible()
|
||||
{
|
||||
return this.clipboardStatusVisible;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param clipboardStatusVisible True if the clipboard status messages should be visible.
|
||||
*/
|
||||
/*package*/ void setClipboardStatusVisible(boolean clipboardStatusVisible)
|
||||
{
|
||||
this.clipboardStatusVisible = clipboardStatusVisible;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns if the clipboard paste all action should clear the clipboard.
|
||||
*/
|
||||
public boolean isPasteAllAndClearEnabled()
|
||||
{
|
||||
return this.pasteAllAndClear;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param pasteAllAndClear Sets whether the paste all action should clear all items
|
||||
* from the clipboard.
|
||||
*/
|
||||
/*package*/ void setPasteAllAndClearEnabled(boolean pasteAllAndClear)
|
||||
{
|
||||
this.pasteAllAndClear = pasteAllAndClear;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The error page the application should use
|
||||
|
Reference in New Issue
Block a user