Redmi Note 5 Specification And Price

Image
See the Redmi Note 5 Specification And Price

Display


18:9 Full screen displayCustom display with rounded corners
Procesor & Memory

Octa-core processorSnapdragon 625 2.0GHz maxAdreno 506Dimensions
Height: 158.5mmWidth: 75.45mmThickness: 8.05mmWeight: 180g

Display
18:9 Full screen display15.2cm (5.99) (diagonally)18:9 screen aspect ratio2160 x 1080 FHD+ resolution, 403 PPI, 1000:1 contrast ratio450 nits brightness84% of NTSC color gamutSunlight displayNight displayReading modeColor temperature adjustmentStandard mode
Battery
4000mAh (typ) / 3900mAh (min)Non-removable5V/2A
Camera & Video
12MP rear camera12MP, 1.25μm large pixel5-element lens, ƒ/2.2 apertureDual LED flashPDAFLow light enhancementHDRPanoramaBurst modeFace recognition5MP front cameraBeautify 4.0Selfie-lightSelfie countdownFace recognition1080p/720p video, 30fps
Networks & Connectivity
Supports 802.11a/b/g/n protocolsSupports 2.4 / 5G WiFi / WIFI Direct / WiFi DisplayBluetooth 4.2, Bluetooth HID4G dual SIM:
3-choose-2 hybrid S…

Buffered Grid In Ext Gwt

Buffered Grid In Ext Gwt Sample Code



  1. package com.extjs.gxt.samples.client.examples.grid;  
  2.   
  3. import java.util.ArrayList;  
  4. import java.util.Date;  
  5. import java.util.List;  
  6.   
  7. import com.extjs.gxt.samples.client.examples.model.Post;  
  8. import com.extjs.gxt.samples.resources.client.Resources;  
  9. import com.extjs.gxt.ui.client.Style.SortDir;  
  10. import com.extjs.gxt.ui.client.data.BasePagingLoadConfig;  
  11. import com.extjs.gxt.ui.client.data.BasePagingLoader;  
  12. import com.extjs.gxt.ui.client.data.DataField;  
  13. import com.extjs.gxt.ui.client.data.JsonPagingLoadResultReader;  
  14. import com.extjs.gxt.ui.client.data.LoadEvent;  
  15. import com.extjs.gxt.ui.client.data.Loader;  
  16. import com.extjs.gxt.ui.client.data.ModelData;  
  17. import com.extjs.gxt.ui.client.data.ModelType;  
  18. import com.extjs.gxt.ui.client.data.PagingLoadResult;  
  19. import com.extjs.gxt.ui.client.data.PagingLoader;  
  20. import com.extjs.gxt.ui.client.data.ScriptTagProxy;  
  21. import com.extjs.gxt.ui.client.event.Events;  
  22. import com.extjs.gxt.ui.client.event.GridEvent;  
  23. import com.extjs.gxt.ui.client.event.Listener;  
  24. import com.extjs.gxt.ui.client.store.ListStore;  
  25. import com.extjs.gxt.ui.client.widget.ContentPanel;  
  26. import com.extjs.gxt.ui.client.widget.LayoutContainer;  
  27. import com.extjs.gxt.ui.client.widget.grid.BufferView;  
  28. import com.extjs.gxt.ui.client.widget.grid.ColumnConfig;  
  29. import com.extjs.gxt.ui.client.widget.grid.ColumnData;  
  30. import com.extjs.gxt.ui.client.widget.grid.ColumnModel;  
  31. import com.extjs.gxt.ui.client.widget.grid.Grid;  
  32. import com.extjs.gxt.ui.client.widget.grid.GridCellRenderer;  
  33. import com.extjs.gxt.ui.client.widget.grid.RowNumberer;  
  34. import com.extjs.gxt.ui.client.widget.layout.FitLayout;  
  35. import com.extjs.gxt.ui.client.widget.layout.FlowLayout;  
  36. import com.extjs.gxt.ui.client.widget.toolbar.PagingToolBar;  
  37. import com.google.gwt.user.client.Element;  
  38.   
  39. public class BufferedGridExample extends LayoutContainer {  
  40.   
  41.   @Override  
  42.   protected void onRender(Element parent, int index) {  
  43.     super.onRender(parent, index);  
  44.   
  45.     FlowLayout layout = new FlowLayout(10);  
  46.     setLayout(layout);  
  47.   
  48.     String url = "http://www.extjs.com/forum/topics-browse-remote.php";  
  49.     ScriptTagProxy<PagingLoadResult<ModelData>> proxy = new ScriptTagProxy<PagingLoadResult<ModelData>>(url);  
  50.   
  51.     ModelType type = new ModelType();  
  52.     type.setRoot("topics");  
  53.     type.setTotalName("totalCount");  
  54.     type.addField("title");  
  55.     type.addField("forumtitle");  
  56.     type.addField("forumid");  
  57.     type.addField("author");  
  58.     type.addField("replycount");  
  59.     type.addField("lastposter");  
  60.     type.addField("excerpt");  
  61.     type.addField("replycount");  
  62.     type.addField("threadid");  
  63.   
  64.     DataField datefield = new DataField("lastpost");  
  65.     datefield.setType(Date.class);  
  66.     datefield.setFormat("timestamp");  
  67.     type.addField(datefield);  
  68.   
  69.     JsonPagingLoadResultReader<PagingLoadResult<ModelData>> reader = new JsonPagingLoadResultReader<PagingLoadResult<ModelData>>(  
  70.         type);  
  71.   
  72.     final PagingLoader<PagingLoadResult<ModelData>> loader = new BasePagingLoader<PagingLoadResult<ModelData>>(proxy,  
  73.         reader);  
  74.   
  75.     loader.addListener(Loader.BeforeLoad, new Listener<LoadEvent>() {  
  76.       public void handleEvent(LoadEvent be) {  
  77.         BasePagingLoadConfig m = be.<BasePagingLoadConfig> getConfig();  
  78.         m.set("start", m.get("offset"));  
  79.         m.set("ext""js");  
  80.         m.set("lightWeight"true);  
  81.         m.set("sort", (m.get("sortField") == null) ? "" : m.get("sortField"));  
  82.         m.set("dir", (m.get("sortDir") == null || (m.get("sortDir") != null && m.<SortDir> get("sortDir").equals(  
  83.             SortDir.NONE))) ? "" : m.get("sortDir"));  
  84.   
  85.       }  
  86.     });  
  87.     loader.setSortDir(SortDir.DESC);  
  88.     loader.setSortField("lastpost");  
  89.   
  90.     loader.setRemoteSort(true);  
  91.   
  92.     ListStore<ModelData> store = new ListStore<ModelData>(loader);  
  93.   
  94.     final PagingToolBar toolBar = new PagingToolBar(500);  
  95.     toolBar.bind(loader);  
  96.   
  97.     List<ColumnConfig> columns = new ArrayList<ColumnConfig>();  
  98.   
  99.     RowNumberer rn = new RowNumberer();  
  100.     rn.setWidth(30);  
  101.     columns.add(rn);  
  102.   
  103.     ColumnConfig title = new ColumnConfig("title""Topic"100);  
  104.     title.setRenderer(new GridCellRenderer<ModelData>() {  
  105.   
  106.       public Object render(ModelData model, String property, ColumnData config, int rowIndex, int colIndex,  
  107.           ListStore<ModelData> store, Grid<ModelData> grid) {  
  108.         return "<b><a style=\"color: #385F95; text-decoration: none;\" href=\"http://extjs.com/forum/showthread.php?t="  
  109.             + model.get("threadid")  
  110.             + "\" target=\"_blank\">"  
  111.             + model.get("title")  
  112.             + "</a></b><br /><a style=\"color: #385F95; text-decoration: none;\" href=\"http://extjs.com/forum/forumdisplay.php?f="  
  113.             + model.get("forumid") + "\" target=\"_blank\">" + model.get("forumtitle") + " Forum</a>";  
  114.       }  
  115.   
  116.     });  
  117.     columns.add(title);  
  118.     columns.add(new ColumnConfig("replycount""Replies"50));  
  119.   
  120.     ColumnConfig last = new ColumnConfig("lastpost""Last Post"200);  
  121.     last.setRenderer(new GridCellRenderer<ModelData>() {  
  122.   
  123.       public Object render(ModelData model, String property, ColumnData config, int rowIndex, int colIndex,  
  124.           ListStore<ModelData> store, Grid<ModelData> grid) {  
  125.         return model.get("lastpost") + "<br/>by " + model.get("lastposter");  
  126.       }  
  127.   
  128.     });  
  129.     columns.add(last);  
  130.   
  131.     ColumnModel cm = new ColumnModel(columns);  
  132.   
  133.     Grid<ModelData> grid = new Grid<ModelData>(store, cm);  
  134.     grid.setTrackMouseOver(false);  
  135.     grid.addListener(Events.Attach, new Listener<GridEvent<Post>>() {  
  136.       public void handleEvent(GridEvent<Post> be) {  
  137.         loader.load(0500);  
  138.       }  
  139.     });  
  140.     grid.setTrackMouseOver(false);  
  141.     grid.setLoadMask(true);  
  142.     grid.setBorders(true);  
  143.     grid.setAutoExpandColumn("title");  
  144.   
  145.     BufferView view = new BufferView();  
  146.     view.setRowHeight(32);  
  147.   
  148.     grid.setView(view);  
  149.   
  150.     ContentPanel panel = new ContentPanel();  
  151.     panel.setFrame(true);  
  152.     panel.setCollapsible(true);  
  153.     panel.setAnimCollapse(false);  
  154.     panel.setIcon(Resources.ICONS.table());  
  155.     panel.setHeading("Buffered Grid");  
  156.     panel.setLayout(new FitLayout());  
  157.     panel.add(grid);  
  158.     panel.setSize(600350);  
  159.     panel.setBottomComponent(toolBar);  
  160.   
  161.     add(panel);  
  162.   }  
  163.   
  164. }  

Comments

Popular posts from this blog

Gradle project sync failed. Basic functionality (e.g, editing, debugging) will not work properly.

How Automation Can Make You Better at Your Job

Best Expense Manager App For Your Android Phone