-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6b0a74a
commit e97d6dd
Showing
11 changed files
with
108 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,19 +7,20 @@ | |
*/ | ||
package com.databasepreservation.common.client.common.visualization.browse.configuration.columns.helpers; | ||
|
||
import static com.databasepreservation.common.client.ViewerConstants.DEFAULT_DETAILED_VIEWER_LABEL_TEMPLATE; | ||
import static com.databasepreservation.common.client.ViewerConstants.DEFAULT_DOWNLOAD_LABEL_TEMPLATE; | ||
|
||
import com.databasepreservation.common.client.ClientConfigurationManager; | ||
import com.databasepreservation.common.client.ViewerConstants; | ||
import com.databasepreservation.common.client.models.status.collection.ColumnStatus; | ||
import com.databasepreservation.common.client.models.status.collection.TableStatus; | ||
import com.databasepreservation.common.client.models.status.collection.TemplateStatus; | ||
import com.databasepreservation.common.client.tools.ViewerStringUtils; | ||
import com.google.gwt.core.client.GWT; | ||
import com.google.gwt.user.client.ui.Button; | ||
import com.google.gwt.user.client.ui.FlowPanel; | ||
import com.google.gwt.user.client.ui.Label; | ||
import com.google.gwt.user.client.ui.TextBox; | ||
|
||
import static com.databasepreservation.common.client.ViewerConstants.DEFAULT_DOWNLOAD_LABEL_TEMPLATE; | ||
|
||
/** | ||
* @author Miguel Guimarães <[email protected]> | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,10 @@ | |
*/ | ||
package com.databasepreservation.common.utils; | ||
|
||
import static com.databasepreservation.common.client.ViewerConstants.DEFAULT_DETAILED_VIEWER_LABEL_TEMPLATE; | ||
import static com.databasepreservation.common.client.ViewerConstants.DEFAULT_DOWNLOAD_LABEL_TEMPLATE; | ||
import static com.databasepreservation.common.client.ViewerConstants.DEFAULT_VIEWER_DOWNLOAD_LABEL_TEMPLATE; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
|
@@ -31,6 +35,7 @@ | |
import com.databasepreservation.common.client.models.structure.ViewerMetadata; | ||
import com.databasepreservation.common.client.models.structure.ViewerTable; | ||
import com.databasepreservation.common.client.models.structure.ViewerType; | ||
import com.databasepreservation.common.server.ViewerConfiguration; | ||
|
||
/** | ||
* @author Miguel Guimarães <[email protected]> | ||
|
@@ -119,9 +124,17 @@ public static ColumnStatus getColumnStatus(ViewerColumn column, boolean show, in | |
if (column.getType() != null && (column.getType().getDbType().equals(ViewerType.dbTypes.BINARY) | ||
|| column.getType().getDbType().equals(ViewerType.dbTypes.CLOB))) { | ||
final TemplateStatus template = getTemplateStatus(); | ||
template.setTemplate(ViewerConstants.DEFAULT_DOWNLOAD_LABEL_TEMPLATE); | ||
final TemplateStatus detailedTemplate = getTemplateStatus(); | ||
if (ViewerConfiguration.getInstance().getViewerConfigurationAsBoolean(false, | ||
ViewerConfiguration.VIEWER_ENABLED)) { | ||
template.setTemplate(DEFAULT_VIEWER_DOWNLOAD_LABEL_TEMPLATE); | ||
detailedTemplate.setTemplate(DEFAULT_DETAILED_VIEWER_LABEL_TEMPLATE); | ||
} else { | ||
template.setTemplate(DEFAULT_DOWNLOAD_LABEL_TEMPLATE); | ||
detailedTemplate.setTemplate(DEFAULT_DOWNLOAD_LABEL_TEMPLATE); | ||
} | ||
status.updateSearchListTemplate(template); | ||
status.updateDetailsTemplate(template); | ||
status.updateDetailsTemplate(detailedTemplate); | ||
} | ||
|
||
return status; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters