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"/>
|
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
|
||||||
</attributes>
|
</attributes>
|
||||||
</classpathentry>
|
</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>
|
<attributes>
|
||||||
<attribute name="maven.pomderived" value="true"/>
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
</attributes>
|
</attributes>
|
||||||
|
|
5
pom.xml
5
pom.xml
|
@ -62,6 +62,11 @@
|
||||||
<version>1.2.0-SNAPSHOT</version>
|
<version>1.2.0-SNAPSHOT</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.gcube.applicationsupportlayer</groupId>
|
||||||
|
<artifactId>aslcore</artifactId>
|
||||||
|
<version>3.2.0-2.12.0</version>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.liferay.portal</groupId>
|
<groupId>com.liferay.portal</groupId>
|
||||||
<artifactId>portal-service</artifactId>
|
<artifactId>portal-service</artifactId>
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
package org.gcube.portlets.user.notifications.client.view.templates;
|
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.client.GCubeSocialNetworking;
|
||||||
import org.gcube.portal.databook.shared.Notification;
|
import org.gcube.portal.databook.shared.Notification;
|
||||||
import org.gcube.portal.databook.shared.NotificationType;
|
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.UiBinder;
|
||||||
import com.google.gwt.uibinder.client.UiField;
|
import com.google.gwt.uibinder.client.UiField;
|
||||||
import com.google.gwt.user.client.ui.Composite;
|
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.HTMLPanel;
|
||||||
import com.google.gwt.user.client.ui.Image;
|
import com.google.gwt.user.client.ui.Image;
|
||||||
import com.google.gwt.user.client.ui.Widget;
|
import com.google.gwt.user.client.ui.Widget;
|
||||||
|
@ -35,8 +31,8 @@ public class SingleNotificationView extends Composite {
|
||||||
@UiField
|
@UiField
|
||||||
Image notificationImage;
|
Image notificationImage;
|
||||||
@UiField HTMLPanel mainPanel;
|
@UiField HTMLPanel mainPanel;
|
||||||
@UiField HTML notificationText;
|
@UiField Span notificationText;
|
||||||
@UiField HTML timeArea;
|
@UiField Span timeArea;
|
||||||
|
|
||||||
public SingleNotificationView(Notification toShow) {
|
public SingleNotificationView(Notification toShow) {
|
||||||
initWidget(uiBinder.createAndBindUi(this));
|
initWidget(uiBinder.createAndBindUi(this));
|
||||||
|
|
|
@ -1,19 +1,20 @@
|
||||||
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
|
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
|
||||||
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
|
<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">
|
<g:HTMLPanel ui:field="mainPanel">
|
||||||
<table class="single-notification-table">
|
<table class="single-notification-table">
|
||||||
<tr>
|
<tr>
|
||||||
<td width="30px;" align="middle">
|
<td valign="TOP" style="width: 30px;" align="middle">
|
||||||
<g:Image styleName="notification-photo" url="" ui:field="notificationImage"
|
<g:Image styleName="notification-photo" url=""
|
||||||
width="30" height="30" />
|
ui:field="notificationImage" width="30" height="30" />
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
<td valign="TOP">
|
<td valign="TOP" style="width: 50px;">
|
||||||
<g:HTML styleName="user-notification" ui:field="notificationText" />
|
<c:Span styleName="user-notification-time" ui:field="timeArea" />
|
||||||
</td>
|
</td>
|
||||||
<td valign="top" width="100%">
|
<td valign="TOP">
|
||||||
<g:HTML styleName="user-notification-time" ui:field="timeArea" />
|
<c:Span styleName="user-notification" ui:field="notificationText" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</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,
|
font-family: 'Lucida Grande', Verdana, 'Bitstream Vera Sans', Arial,
|
||||||
sans-serif;
|
sans-serif;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
padding-left: 10px;
|
padding: 1px 10px;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,6 +74,4 @@ a.link:hover {
|
||||||
border-color: #999;
|
border-color: #999;
|
||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
letter-spacing: normal;
|
letter-spacing: normal;
|
||||||
white-space: nowrap;
|
|
||||||
padding-left: 10px;
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue