전체 글(809)
-
Sencha checkcolumn 체크 및 이벤트
text:''가 있어서 header의 라인이 2줄로 안보임Ext.application({ name: 'CheckboxHeaderGrid', launch: function () { Ext.create('Ext.grid.Panel', { renderTo: Ext.getBody(), width: 600, height: 400, title: 'Checkbox Header Grid Example', store: { fields: ['name', 'email', 'phone'], data: [ { name: ..
2024.12.08 -
Spring boot 소스 변경시 자동으로 restart하기
pom.xml에 아래 내용 추가 org.springframework.boot spring-boot-devtools runtime자동 build 설정: Project > Build Automatically 체크
2024.12.07 -
Sencha treepanel drag&drop 적용
Ext.application({ name: 'TreeMultiplePluginsApp', launch: function () { Ext.create('Ext.container.Viewport', { layout: 'fit', items: [ { xtype: 'treepanel', title: 'TreePanel with Multiple Plugins', rootVisible: false, store: Ext.create('Ext.data.TreeStore', { ..
2024.12.05 -
Javascript array 및 map 처리
Ext.Array.each(selection, function (node) { if(node.getData().id.startsWith('extModel')) { node.remove(); } if(node.hasChildNodes()) { Ext.Msg.alert('Warning', '하위 record가 있으면 삭제할 수 없습니다!'); return; }});const selecteRecords = selection.map(record => record.getData());
2024.12.05 -
Sencha treepanel에서 값은 바뀌지 않고, depth에 따라 indent처리해서 보여주기
Ext.application({ name: 'ImageApp', launch: function () { Ext.create('Ext.container.Viewport', { layout: 'fit', items: [ { xtype: 'panel', title: 'Image Display', html: '' } ] }); }});{ text: '순서', dataIndex: 'index', flex: 1, editor: { xtyp..
2024.12.05 -
Java 이미지 타입 정보 얻기
import javax.imageio.ImageIO;import javax.imageio.ImageReader;import javax.imageio.stream.ImageInputStream;import java.io.File;import java.io.IOException;import java.util.Iterator;public class ImageTypeDetector { public static void main(String[] args) { String imagePath = "/path/to/your/image.jpg"; try { File imageFile = new File(imagePath); String formatNa..
2024.12.05