Posts

java - How to use Degraph to graph only models -

i want generate relationship graph among model classes using degraph. here representative example model, pojo taskentryimpl relates task: package com.packag.tm.model.pojo; public class taskentryimpl implements taskentry,serializable { private integer id; private task task; public task gettask() { return this.task; } public void settask(task v) { this.task = v; } packages containing models have model.pojo part of package name: com.somepackage.events.model.pojo.durationimpl au.com.anotherpackage.ecrm.model.pojo.payphoneimpl how graph of models meet abovementioned characteristics? for curious: wish have entity-relation diagram instead. these model classes wired hibernate orm. original developers maintained sql independent of codebase , have never used foreign keys. rules out getting entity-relation diagram database schema. create file pojo.config following content output = pojo.graphml classpath = yourlib.jar inclu...

How to disable scrolling between FlipView items with mouse wheel on Windows 8.1 -

i have windows 8.1 store c#/xaml app, in app have flipview several flipview items. in 1 item have webview quite long. problem - when scroll using mouse wheel in webview , reach end of page, the flipview scrolls next item, unwanted . the expected behavior freely scroll within webview , not between flipview items. ideally switching between flipview items should work using touch or programmatic change. i've tried setting different scrollviewer properties on flipviewitem or nested items, changining manipulationmode, nothing worked far. sample code: <flipview> <flipviewitem> <grid background="red"/> </flipviewitem> <flipviewitem> <grid> <!-- when scrolling on page, not navigate blue or red flipviewitem--> <webview source="http://cnn.com"/> </grid> </flipviewitem> <flipviewitem> <grid background="blue"/...

html - Resize SVG in DIV and don't preserve aspect ratio -

how resize svg image in div jquery ui ? want resize div , don't preserve aspect ratio of svg image in div. jsfiddle example html <div style="width: 100px; height:100px; border: 1px solid black;"> <svg style="width:100%; height:100%; " version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="340.156px" height="340.152px" viewbox="0 0 340.156 340.152" enable-background="new 0 0 340.156 340.152" xml:space="preserve"> <path fill="#2121ed" fill-opacity="1" stroke="#000000" stroke-width="1" stroke-opacity="0" class="path_vector_1" d="m340.156,170.078c0,93.926-76.146,170.074-170.077,170.074c76.146,340.152,0,264.004,0,170.078 c0,76.146,76.147,0,170.079,0c264.011,0,340.156,76.146,340.156,170.078z"...

java - JavaFX TreeTableView custom TreeCell with controls -

i'm new javafx 8 , tried implement treetableview jfxtras controls in second , third column. therefore set cell factories of columns custom treecells e.g. this: col3.setcellfactory(new callback<treetablecolumn<object, string>, treetablecell<object, string>>() { @override public treetablecell<object, string> call(treetablecolumn<object, string> param) { treetablecell<object, string> cell = new treetablecell<object, string>() { private colorpicker colorpicker = new colorpicker(); @override protected void updateitem(string t, boolean bln) { super.updateitem(t, bln); setgraphic(colorpicker); } }; return cell; } }); now can see colorpickers , can use them, column somehow not react on expanding or collapsing nodes of column 1 (which sho...

error handling - Why ErrorHandler component is not registering properly in SlingMainServlet? -

i have simple component own errorhandler implementation: @component(immediate = true) @service @properties( @property(name = "service.ranking", intvalue = 1) ) public class myerrorhandler implements errorhandler { @override public void handleerror(int status, string message, slinghttpservletrequest request, slinghttpservletresponse response) throws ioexception { handleerror(status, request, response); } @override public void handleerror(throwable throwable, slinghttpservletrequest request, slinghttpservletresponse response) throws ioexception { handleerror(505, request, response); } private void handleerror(int status, slinghttpservletrequest request, slinghttpservletresponse response) throws ioexception { if (status != 200) { try { request.getrequestdispatcher("/etc/errors/" + status + ".html").forward(request, response); } catch (servletexception ...

javascript - Chrome App: Window interacting with another window's HTML code -

i'm coding app which, in main window's javascript code, creates new window. mainwindow.js : chrome.app.window.create('sample.html', { id: 'newwindow', 'bounds': { 'width': 200, 'height': 200 }, 'resizable' : false, 'alwaysontop' : true, 'frame': { type: "none" } }, function(createdwindow) { /*here*/ }) sample.html : <!doctype html> <html> <head> <title>chrome app</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <div style='background-image: url("img1.png"); height: 50px; width: 200px;'> </body> </html> the thing i'd interact sample.html code inside mainwindow.js, in order change path of background image. there way ?

jquery - Prevent column name wrap in shiny DataTable -

i have shiny datatable (package "dt") quite long column names (+ whitespace) want rendered without name wrapping - i.e. colnames wrapped on 2-3 lines. have enabled horizontal scrolling try , facilitate this: renderdatatable(dataframe_with_long_colnames, ..., options = list(scrollx = true)) but default whitespace collapsed new lines. i think answers question: https://www.datatables.net/forums/discussion/8923/how-do-you-stop-the-header-from-wrapping-into-multiple-rows i'm not sure how translate r function. in addition, datatable options listed here: https://www.datatables.net/reference/option/ thanks in advance. in ui.r add following line before line render table: tags$head(tags$style("#table1 {white-space: nowrap; }")), replace table1 xxxxx output statement in server.r file output$`xxxxx`<-renderdatatable(.....