fixed styles
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/notifications@67415 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
6babb4a3b4
commit
573f82c84f
|
@ -20,7 +20,7 @@
|
|||
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
|
|
5
pom.xml
5
pom.xml
|
@ -62,6 +62,11 @@
|
|||
<version>1.2.0-SNAPSHOT</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.applicationsupportlayer</groupId>
|
||||
<artifactId>aslcore</artifactId>
|
||||
<version>3.2.0-2.12.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.liferay.portal</groupId>
|
||||
<artifactId>portal-service</artifactId>
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
package org.gcube.portlets.user.notifications.client.view.templates;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import com.google.gwt.user.datepicker.client.CalendarUtil;
|
||||
import org.gcube.portal.databook.client.GCubeSocialNetworking;
|
||||
import org.gcube.portal.databook.shared.Notification;
|
||||
import org.gcube.portal.databook.shared.NotificationType;
|
||||
|
@ -14,7 +11,6 @@ import com.google.gwt.resources.client.ImageResource;
|
|||
import com.google.gwt.uibinder.client.UiBinder;
|
||||
import com.google.gwt.uibinder.client.UiField;
|
||||
import com.google.gwt.user.client.ui.Composite;
|
||||
import com.google.gwt.user.client.ui.HTML;
|
||||
import com.google.gwt.user.client.ui.HTMLPanel;
|
||||
import com.google.gwt.user.client.ui.Image;
|
||||
import com.google.gwt.user.client.ui.Widget;
|
||||
|
@ -35,8 +31,8 @@ public class SingleNotificationView extends Composite {
|
|||
@UiField
|
||||
Image notificationImage;
|
||||
@UiField HTMLPanel mainPanel;
|
||||
@UiField HTML notificationText;
|
||||
@UiField HTML timeArea;
|
||||
@UiField Span notificationText;
|
||||
@UiField Span timeArea;
|
||||
|
||||
public SingleNotificationView(Notification toShow) {
|
||||
initWidget(uiBinder.createAndBindUi(this));
|
||||
|
|
|
@ -1,19 +1,20 @@
|
|||
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
|
||||
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
|
||||
xmlns:g="urn:import:com.google.gwt.user.client.ui">
|
||||
xmlns:g="urn:import:com.google.gwt.user.client.ui"
|
||||
xmlns:c="urn:import:org.gcube.portlets.user.notifications.client.view.templates">
|
||||
<g:HTMLPanel ui:field="mainPanel">
|
||||
<table class="single-notification-table">
|
||||
<tr>
|
||||
<td width="30px;" align="middle">
|
||||
<g:Image styleName="notification-photo" url="" ui:field="notificationImage"
|
||||
width="30" height="30" />
|
||||
<td valign="TOP" style="width: 30px;" align="middle">
|
||||
<g:Image styleName="notification-photo" url=""
|
||||
ui:field="notificationImage" width="30" height="30" />
|
||||
|
||||
</td>
|
||||
<td valign="TOP">
|
||||
<g:HTML styleName="user-notification" ui:field="notificationText" />
|
||||
<td valign="TOP" style="width: 50px;">
|
||||
<c:Span styleName="user-notification-time" ui:field="timeArea" />
|
||||
</td>
|
||||
<td valign="top" width="100%">
|
||||
<g:HTML styleName="user-notification-time" ui:field="timeArea" />
|
||||
<td valign="TOP">
|
||||
<c:Span styleName="user-notification" ui:field="notificationText" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
package org.gcube.portlets.user.notifications.client.view.templates;
|
||||
|
||||
import com.google.gwt.user.client.DOM;
|
||||
import com.google.gwt.user.client.ui.HTML;
|
||||
import com.google.gwt.user.client.ui.HasText;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Massimiliano Assante, ISTI-CNR
|
||||
* @version 0.1 Sep 2012
|
||||
*
|
||||
*/
|
||||
public class Span extends HTML implements HasText {
|
||||
|
||||
public Span() {
|
||||
super(DOM.createElement("span"));
|
||||
}
|
||||
|
||||
public Span(String text) {
|
||||
this();
|
||||
setText(text);
|
||||
}
|
||||
}
|
|
@ -61,7 +61,7 @@ a.link:hover {
|
|||
font-family: 'Lucida Grande', Verdana, 'Bitstream Vera Sans', Arial,
|
||||
sans-serif;
|
||||
font-size: 12px;
|
||||
padding-left: 10px;
|
||||
padding: 1px 10px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
|
@ -74,6 +74,4 @@ a.link:hover {
|
|||
border-color: #999;
|
||||
border-width: 1px;
|
||||
letter-spacing: normal;
|
||||
white-space: nowrap;
|
||||
padding-left: 10px;
|
||||
}
|
Loading…
Reference in New Issue